diff options
author | Daniel Baumann <daniel@debian.org> | 2008-01-16 10:24:23 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2008-01-16 10:24:23 +0100 |
commit | 2576eed7315eee6122650168c61a849592da54f9 (patch) | |
tree | dfd5523a5127ceb88155fc0d487cc8da2956ab6d | |
parent | 8b59b61bb25e43766add1f601404224d33cde727 (diff) | |
download | vyos-live-build-2576eed7315eee6122650168c61a849592da54f9.tar.gz vyos-live-build-2576eed7315eee6122650168c61a849592da54f9.zip |
Checking for /sys/class rather than /sys/kernel, avoids problem when running under OpenVZ which doesn't have sys/kernel, thanks to Takeshi Yaegashi <yaegashi@debian.org>.
-rwxr-xr-x | helpers/lh_chroot_sysfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs index 04e67de63..c9d07aa22 100755 --- a/helpers/lh_chroot_sysfs +++ b/helpers/lh_chroot_sysfs @@ -81,7 +81,7 @@ case "${1}" in then # Unmounting /sys #fuser -km chroot/sys - if [ -e chroot/sys/kernel ] + if [ -e chroot/sys/class ] then ${LH_ROOT_COMMAND} umount chroot/sys fi |