From: Ludwig Nussel Date: Thu, 26 Jun 2008 13:59:29 +0000 (+0000) Subject: don't umount /dev X-Git-Tag: obs_2.0~367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2fb6898c278ed75fdbe30740d33e78a359a4323;p=platform%2Fupstream%2Fbuild.git don't umount /dev when using qemu as user init_buildsystem outside the vm cannot create devices so one has to rely on udev populating /dev. --- diff --git a/build b/build index 3870765..4119ed6 100755 --- a/build +++ b/build @@ -361,15 +361,14 @@ detect_xen_2nd_stage() sleep 1 done test $i = 1 || echo - fi -#why would one want to do that?? Breaks all kinds of things -# XXX: why wait for it and then recreate? - umount -l /dev 2>/dev/null - if test -n "$XENSWAP" ; then - rm -f "$XENSWAP" - umask 027 - mknod "$XENSWAP" b 3 2 - umask 022 + # recreate the swap device manually if it didn't exist for some + # reason, hardcoded to hda2 atm + if ! test -b "$XENSWAP" ; then + rm -f "$XENSWAP" + umask 027 + mknod "$XENSWAP" b 3 2 + umask 022 + fi swapon -v "$XENSWAP" || exit 1 fi HOST="$MYHOSTNAME"