diff options
| author | Radoslav Gerganov <rgerganov@vmware.com> | 2020-08-31 15:27:07 +0300 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-23 17:21:11 +0200 |
| commit | 54289b0835634ca07a8117613c48b73e9e647d13 (patch) | |
| tree | c07347920a9b90f1142191e6c6dce7073785da28 /tools/create-gce-image.sh | |
| parent | 3489f2f32e64ecc20d5e9a8410c0a6aa59c63dfc (diff) | |
tools/create-gce-image.sh: mount the root filesystem read-write
Add fstab entry to mount the root filesystem read-write after boot. This
has been done with commit 873745 for create-image.sh. Maybe this hint is
not necessary for GCE but it is required when running on other platforms
(e.g. VMware).
Diffstat (limited to 'tools/create-gce-image.sh')
| -rwxr-xr-x | tools/create-gce-image.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/create-gce-image.sh b/tools/create-gce-image.sh index aad89e586..2d3e909b3 100755 --- a/tools/create-gce-image.sh +++ b/tools/create-gce-image.sh @@ -136,6 +136,7 @@ sudo cp $2 disk.mnt/vmlinuz sudo sed -i "/^root/ { s/:x:/::/ }" disk.mnt/etc/passwd echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/etc/inittab echo -en "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp\n" | sudo tee disk.mnt/etc/network/interfaces +echo '/dev/root / ext4 defaults 0 0' | sudo tee -a disk.mnt/etc/fstab echo "debugfs /sys/kernel/debug debugfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab echo "securityfs /sys/kernel/security securityfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab echo "configfs /sys/kernel/config/ configfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab |
