- Handle rw option in ext4.ko

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=229
This commit is contained in:
Olaf Hering 2013-08-22 08:10:28 +00:00 committed by Git OBS Bridge
parent 79b4b7a5ae
commit cf8b279489
2 changed files with 9 additions and 1 deletions

View File

@ -1,9 +1,10 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 22 09:47:30 CEST 2013 - ohering@suse.de Thu Aug 22 10:10:00 CEST 2013 - ohering@suse.de
- Add network related modules to initrd (bnc#835949) - Add network related modules to initrd (bnc#835949)
- Remove supermin.d - Remove supermin.d
- Mount also /dev/pts in mount-rootfs-and-do-chroot.sh - Mount also /dev/pts in mount-rootfs-and-do-chroot.sh
- Handle rw option in ext4.ko
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 19 23:23:31 CEST 2013 - ohering@suse.de Mon Aug 19 23:23:31 CEST 2013 - ohering@suse.de

View File

@ -44,6 +44,13 @@ do
done done
done done
# Need to create the modprobe.conf file to force read-write mode
if modinfo -k $kernel_version ext4 | grep -E '^parm:[[:blank:]]+rw:'
then
mkdir -vp "${tmp_mnt}/etc/modprobe.d"
echo "options ext4 rw=1" >> "${tmp_mnt}/etc/modprobe.d/ext4-kmp-rw.conf"
fi
# Bug 674684 - mount-rootfs-and-do-chroot.sh # Bug 674684 - mount-rootfs-and-do-chroot.sh
cat > $tmp_mnt/bin/mount-rootfs-and-do-chroot.sh <<'__EOF__' cat > $tmp_mnt/bin/mount-rootfs-and-do-chroot.sh <<'__EOF__'
#!/bin/bash #!/bin/bash