diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-11 23:05:55 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-11-11 23:05:55 +0100 |
commit | fb1e3ce43a00114cef8aa3447b7bde57368dc645 (patch) | |
tree | c94bc720d5eedf6fb630bf6d2f91af3b259f26b5 /helpers/lh_chroot_devpts | |
parent | 13e39acb9f2c6936b45aa5690ba0359efb949064 (diff) | |
download | vyos-live-build-fb1e3ce43a00114cef8aa3447b7bde57368dc645.tar.gz vyos-live-build-fb1e3ce43a00114cef8aa3447b7bde57368dc645.zip |
Adding some more fakeroot related fixes from An-Cheng Huang <ancheng@vyatta.com>.
Diffstat (limited to 'helpers/lh_chroot_devpts')
-rwxr-xr-x | helpers/lh_chroot_devpts | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/helpers/lh_chroot_devpts b/helpers/lh_chroot_devpts index 0024fb973..07fec4df6 100755 --- a/helpers/lh_chroot_devpts +++ b/helpers/lh_chroot_devpts @@ -52,11 +52,14 @@ case "${1}" in # Creating lock file Create_lockfile .lock - # Creating mountpoint - mkdir -p chroot/dev/pts + 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 + # Mounting /dev/pts + ${LH_ROOT_COMMAND} mount devpts-live -t devpts chroot/dev/pts + fi # Creating stage file Create_stagefile .stage/chroot_devpts @@ -70,9 +73,12 @@ case "${1}" in Create_lockfile .lock # Unmounting /dev/pts - if [ -e chroot/dev/pts/0 ] + if [ "${LH_USE_FAKEROOT}" != "enabled" ] then - ${LH_ROOT_COMMAND} umount chroot/dev/pts + if [ -e chroot/dev/pts/0 ] + then + ${LH_ROOT_COMMAND} umount chroot/dev/pts + fi fi # Removing stage file |