From cf8b2794899af500e321f92a39925a36fbd12bcbdb7671dfe24b37ae76fdda2d Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 22 Aug 2013 08:10:28 +0000 Subject: [PATCH] - Handle rw option in ext4.ko OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=229 --- libguestfs.changes | 3 ++- libguestfs.mkinitrd.setup.sh | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libguestfs.changes b/libguestfs.changes index 82a1302..5362663 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -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) - Remove supermin.d - 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 diff --git a/libguestfs.mkinitrd.setup.sh b/libguestfs.mkinitrd.setup.sh index ccbc243..8fd4d2b 100644 --- a/libguestfs.mkinitrd.setup.sh +++ b/libguestfs.mkinitrd.setup.sh @@ -44,6 +44,13 @@ do 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 cat > $tmp_mnt/bin/mount-rootfs-and-do-chroot.sh <<'__EOF__' #!/bin/bash