[Pkg-libvirt-commits] [libguestfs] 34/72: appliance: Create /etc/mtab in init script to work around util-linux nuttiness.

Hilko Bengen bengen at moszumanska.debian.org
Sun Apr 5 15:19:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 07309cb9b53de4f5988b6a7c877ede86b2bdf20f
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sat Feb 28 11:10:31 2015 +0000

    appliance: Create /etc/mtab in init script to work around util-linux nuttiness.
    
    (cherry picked from commit 4e9bda459844c8be1448ea6d33de1fb02cf0b021)
---
 appliance/init | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/appliance/init b/appliance/init
index f4656fb..3c5ef1b 100755
--- a/appliance/init
+++ b/appliance/init
@@ -38,6 +38,10 @@ mount -t tmpfs -o "nosuid,size=20%,mode=0755" tmpfs /run
 mkdir -p /run/lock
 ln -s ../run/lock /var/lock
 
+# On Fedora 23, util-linux creates /etc/mtab in %post .. stupid
+# and e2fsprogs fails if the link doesn't exist .. stupid stupid
+ln -s /proc/mounts /etc/mtab
+
 # devtmpfs is required since udev 176
 mount -t devtmpfs /dev /dev
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list