mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-26 21:00:30 +00:00
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).
This commit is contained in:
parent
3489f2f32e
commit
54289b0835
@ -87,6 +87,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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user