Browse Source

added some processes to mount/unmount /proc in vbootstrap_post() for scripts/VineSeed_{i386,x86_64}

git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@6957 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 11 years ago
parent
commit
9b4f2cc974
3 changed files with 17 additions and 1 deletions
  1. 5 1
      vbootstrap-vl.spec
  2. 6 0
      vbootstrap/scripts/VineSeed_i386.sh
  3. 6 0
      vbootstrap/scripts/VineSeed_x86_64.sh

+ 5 - 1
vbootstrap-vl.spec

@@ -1,7 +1,7 @@
 # This package is maintained on trac svn repository. Please do not change on local.
 # If you find a BUG, please report to Vine@vinelinux.org or mailing list or BTS.
 
-%define version 0.0.59
+%define version 0.0.60
 
 Summary: bootstrap scripts to create a basic Vine Linux system
 Summary(ja): Vine Linux の基本システムを作成するためのスクリプト
@@ -91,6 +91,10 @@ vbuilder は vbootstrap を利用して chroot 環境の構築し、
 
 
 %changelog
+* Fri Oct 19 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.0.60-1
+- added some processes to mount/unmount /proc in vbootstrap_post() 
+  for scripts/VineSeed_{i386,x86_64}
+
 * Wed Oct 03 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.0.59-1
 - add --force rpm option to install packages in vbootstrap
   - add RPM::PM="external" for use external rpm

+ 6 - 0
vbootstrap/scripts/VineSeed_i386.sh

@@ -9,6 +9,9 @@ vbootstrap_post()
 echo $"running vbootstrap post install scripts for $INSTVER on $INSTDIR"
 cp -a /etc/resolv.conf $INSTDIR/etc/
 rm -f $INSTDIR/var/lib/rpm/__db.*
+echo -n $" mounting /proc... "
+mount -t proc /proc $INSTDIR/proc
+echo $"DONE."
 echo -n $" reinitializing rpm database... "
 chroot $INSTDIR rpm --initdb
 echo $"DONE."
@@ -21,4 +24,7 @@ echo $"DONE."
 #echo $" installing vine-keyring... "
 #chroot $INSTDIR apt-get -qq -y --reinstall install vine-keyring
 #echo $"DONE."
+echo -n $" unmounting /proc... "
+umount $INSTDIR/proc
+echo $"DONE."
 }

+ 6 - 0
vbootstrap/scripts/VineSeed_x86_64.sh

@@ -9,6 +9,9 @@ vbootstrap_post()
 echo $"running vbootstrap post install scripts for $INSTVER on $INSTDIR"
 cp -a /etc/resolv.conf $INSTDIR/etc/
 rm -f $INSTDIR/var/lib/rpm/__db.*
+echo -n $" mounting /proc... "
+mount -t proc /proc $INSTDIR/proc
+echo $"DONE."
 echo -n $" reinitializing rpm database... "
 chroot $INSTDIR rpm --initdb
 echo $"DONE."
@@ -21,4 +24,7 @@ echo $"DONE."
 #echo $" installing vine-keyring... "
 #chroot $INSTDIR apt-get -qq -y --reinstall install vine-keyring
 #echo $"DONE."
+echo -n $" unmounting /proc... "
+umount $INSTDIR/proc
+echo $"DONE."
 }