From: Marc Fiuczynski Date: Thu, 22 Nov 2007 06:10:05 +0000 (+0000) Subject: mount /proc as some rpms require this; set _netsharedpath to /proc X-Git-Tag: 4.2-rc2~469 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4cff6706ca7fc0a06fb3adf15409bfecdb6db1e8;p=build.git mount /proc as some rpms require this; set _netsharedpath to /proc --- diff --git a/mkfedora b/mkfedora index af53e19e..8eb5be62 100755 --- a/mkfedora +++ b/mkfedora @@ -189,14 +189,16 @@ set -e mount -t devpts none $vroot/dev/pts mount -t tmpfs none $vroot/dev/shm -# why do we need this ? it prevents the 'filesystem' rpm from installing -## Mount /proc in reference image -#mkdir -p $vroot/proc -#mount -t proc none $vroot/proc +# make rpms ignore installing stuff to /proc +mkdir -p $vroot/etc/rpm +echo "%_netsharedpath /proc" > $vroot/etc/rpm/macros +# Mount /proc in reference image +mkdir -p $vroot/proc +mount -t proc none $vroot/proc cleanup () { -# umount -l $vroot/proc + umount -l $vroot/proc umount -l $vroot/dev/shm umount -l $vroot/dev/pts }