mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
Apparently, we have to have a rootfs big enough to hold all dev and test tools too.
I need a couple extra tools for testing purposes (about 10MB). I'd love to not add space to the rootfs for these. But...talking to sosa, it doesn't seem there's any other way. Review URL: http://codereview.chromium.org/1576018
This commit is contained in:
parent
317d8eb3fd
commit
35a83f99e4
@ -165,7 +165,7 @@ fi
|
|||||||
|
|
||||||
# Create root file system disk image to fit on a 1GB memory stick.
|
# Create root file system disk image to fit on a 1GB memory stick.
|
||||||
# 1 GB in hard-drive-manufacturer-speak is 10^9, not 2^30. 950MB < 10^9 bytes.
|
# 1 GB in hard-drive-manufacturer-speak is 10^9, not 2^30. 950MB < 10^9 bytes.
|
||||||
ROOT_SIZE_BYTES=$((1024 * 1024 * 640))
|
ROOT_SIZE_BYTES=$((1024 * 1024 * 720))
|
||||||
dd if=/dev/zero of="$ROOT_FS_IMG" bs=1 count=1 seek=$((ROOT_SIZE_BYTES - 1))
|
dd if=/dev/zero of="$ROOT_FS_IMG" bs=1 count=1 seek=$((ROOT_SIZE_BYTES - 1))
|
||||||
sudo losetup "$LOOP_DEV" "$ROOT_FS_IMG"
|
sudo losetup "$LOOP_DEV" "$ROOT_FS_IMG"
|
||||||
sudo mkfs.ext3 "$LOOP_DEV"
|
sudo mkfs.ext3 "$LOOP_DEV"
|
||||||
|
Loading…
Reference in New Issue
Block a user