xbps_chroot_handler: do not umount, leave this to the signal handler of xbps-src.
This commit is contained in:
parent
a599311f15
commit
fe36d782ca
2 changed files with 0 additions and 11 deletions
|
@ -32,9 +32,6 @@ if [ -n "${MASTERDIR}" ]; then
|
||||||
export XBPS_MASTERDIR="${MASTERDIR}"
|
export XBPS_MASTERDIR="${MASTERDIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Umount stuff if SIGINT or SIGQUIT was caught
|
|
||||||
trap umount_chroot_fs INT QUIT
|
|
||||||
|
|
||||||
REQFS="sys proc dev xbps"
|
REQFS="sys proc dev xbps"
|
||||||
|
|
||||||
mount_chroot_fs()
|
mount_chroot_fs()
|
||||||
|
|
|
@ -222,13 +222,6 @@ _mount()
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
_umount()
|
|
||||||
{
|
|
||||||
MASTERDIR="${XBPS_MASTERDIR}" ${sudo_cmd} \
|
|
||||||
@@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-helper umount
|
|
||||||
return $?
|
|
||||||
}
|
|
||||||
|
|
||||||
xbps_chroot_handler()
|
xbps_chroot_handler()
|
||||||
{
|
{
|
||||||
local action="$1"
|
local action="$1"
|
||||||
|
@ -277,7 +270,6 @@ xbps_chroot_handler()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_normal "Exiting from the chroot on $XBPS_MASTERDIR."
|
msg_normal "Exiting from the chroot on $XBPS_MASTERDIR."
|
||||||
_umount
|
|
||||||
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue