Add another target: chroot. Use this to make stuff on it.
Also the helper has been renamed to just chroot.sh. --HG-- extra : convert_revision : 9d21ca6e9eb55a31a21cb800450376d60cf3af40
This commit is contained in:
parent
46d117ee4e
commit
758eff37a8
@ -80,6 +80,13 @@ install_chroot_pkg()
|
|||||||
echo "==> Exiting from the chroot on $XBPS_MASTERDIR..."
|
echo "==> Exiting from the chroot on $XBPS_MASTERDIR..."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enter_chroot()
|
||||||
|
{
|
||||||
|
chroot $XBPS_MASTERDIR /bin/bash
|
||||||
|
umount_chroot_fs
|
||||||
|
echo "==> Exiting from the chroot on $XBPS_MASTERDIR..."
|
||||||
|
}
|
||||||
|
|
||||||
umount_chroot_fs()
|
umount_chroot_fs()
|
||||||
{
|
{
|
||||||
local fs=
|
local fs=
|
9
xbps.sh
9
xbps.sh
@ -50,6 +50,7 @@ $progname: [-C] [-c <config_file>] <target> [package_name]
|
|||||||
|
|
||||||
Targets:
|
Targets:
|
||||||
build Builds a package, only build phase is done.
|
build Builds a package, only build phase is done.
|
||||||
|
chroot Enters to the chroot in masterdir.
|
||||||
configure Configure a package, only configure phase is done.
|
configure Configure a package, only configure phase is done.
|
||||||
extract Extract distribution file(s) into build directory.
|
extract Extract distribution file(s) into build directory.
|
||||||
fetch Download distribution file(s).
|
fetch Download distribution file(s).
|
||||||
@ -66,7 +67,7 @@ Targets:
|
|||||||
Options:
|
Options:
|
||||||
-C Do not remove build directory after successful installation.
|
-C Do not remove build directory after successful installation.
|
||||||
-c Path to global configuration file:
|
-c Path to global configuration file:
|
||||||
if not specified /usr/local/etc/xbps.conf is used.
|
if not specified /etc/xbps.conf is used.
|
||||||
_EOF
|
_EOF
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@ -1443,6 +1444,10 @@ build)
|
|||||||
fi
|
fi
|
||||||
build_src_phase $2
|
build_src_phase $2
|
||||||
;;
|
;;
|
||||||
|
chroot)
|
||||||
|
run_file $XBPS_TMPLHELPDIR/chroot.sh
|
||||||
|
enter_chroot
|
||||||
|
;;
|
||||||
configure)
|
configure)
|
||||||
setup_tmpl $2
|
setup_tmpl $2
|
||||||
fetch_distfiles $2
|
fetch_distfiles $2
|
||||||
@ -1466,7 +1471,7 @@ info)
|
|||||||
;;
|
;;
|
||||||
install-chroot)
|
install-chroot)
|
||||||
setup_tmpl $2
|
setup_tmpl $2
|
||||||
run_file $XBPS_TMPLHELPDIR/install-chroot.sh
|
run_file $XBPS_TMPLHELPDIR/chroot.sh
|
||||||
install_chroot_pkg $2
|
install_chroot_pkg $2
|
||||||
;;
|
;;
|
||||||
install-destdir)
|
install-destdir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user