Adding some more fakeroot related fixes from An-Cheng Huang <ancheng@vyatta.com>.

This commit is contained in:
Daniel Baumann 2007-11-11 23:05:55 +01:00
parent 13e39acb9f
commit fb1e3ce43a
2 changed files with 15 additions and 9 deletions

View File

@ -52,11 +52,14 @@ case "${1}" in
# Creating lock file
Create_lockfile .lock
if [ "${LH_USE_FAKEROOT}" != "enabled" ]
then
# Creating mountpoint
mkdir -p chroot/dev/pts
# Mounting /dev/pts
${LH_ROOT_COMMAND} mount devpts-live -t devpts chroot/dev/pts
fi
# Creating stage file
Create_stagefile .stage/chroot_devpts
@ -70,10 +73,13 @@ case "${1}" in
Create_lockfile .lock
# Unmounting /dev/pts
if [ "${LH_USE_FAKEROOT}" != "enabled" ]
then
if [ -e chroot/dev/pts/0 ]
then
${LH_ROOT_COMMAND} umount chroot/dev/pts
fi
fi
# Removing stage file
rm -f .stage/chroot_devpts

View File

@ -59,13 +59,13 @@ case "${1}" in
# Mounting /proc
${LH_ROOT_COMMAND} mount proc-live -t proc chroot/proc
# Creating stage file
Create_stagefile .stage/chroot_proc
else
rm -rf chroot/proc
ln -s /proc chroot/
fi
# Creating stage file
Create_stagefile .stage/chroot_proc
;;
remove)