diff options
| author | 2018-10-23 20:26:42 -0400 | |
|---|---|---|
| committer | 2018-10-23 20:26:42 -0400 | |
| commit | 46326677ae0f0ce2b63292cff583be70dd8e597f (patch) | |
| tree | 1aea68cb9d3f8707a378bf2ead5281476459e44a | |
| parent | 55d5f6698726ab7c6f1a6f5e0ed2e282bc35e78c (diff) | |
| parent | 827a047f6fe1a8eff30c6059c8822a4b65665aa9 (diff) | |
Update upstream source from tag 'upstream/20'
Update to upstream version '20'
with Debian dir 6f59e66c4d32a587e74601361d6eb26312cd4b80
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | arch-chroot.in | 11 | ||||
| -rw-r--r-- | common | 5 | ||||
| -rw-r--r-- | genfstab.in | 3 | ||||
| -rw-r--r-- | pacstrap.in | 2 |
5 files changed, 19 insertions, 4 deletions
@@ -1,4 +1,4 @@ -VER=19 +VER=20 PREFIX = /usr/local diff --git a/arch-chroot.in b/arch-chroot.in index bfb83a3..fd6140e 100644 --- a/arch-chroot.in +++ b/arch-chroot.in @@ -13,6 +13,13 @@ usage: ${0##*/} chroot-dir [command] If 'command' is unspecified, ${0##*/} will launch /bin/bash. +Note that when using arch-chroot, the target chroot directory *should* be a +mountpoint. This ensures that tools such as pacman(8) or findmnt(8) have an +accurate hierarchy of the mounted filesystems within the chroot. + +If your chroot target is not a mountpoint, you can bind mount the directory on +itself to make it a mountpoint, i.e. 'mount --bind /your/chroot /your/chroot'. + EOF } @@ -70,6 +77,10 @@ shift [[ -d $chrootdir ]] || die "Can't create chroot on non-directory %s" "$chrootdir" +if ! mountpoint -q "$chrootdir"; then + warning "$chrootdir is not a mountpoint. This may have undesirable side effects." +fi + chroot_setup "$chrootdir" || die "failed to setup chroot %s" "$chrootdir" chroot_add_resolv_conf "$chrootdir" || die "failed to setup resolv.conf" @@ -46,6 +46,7 @@ declare -A fsck_types=([cramfs]=1 out() { printf "$1 $2\n" "${@:3}"; } error() { out "==> ERROR:" "$@"; } >&2 +warning() { out "==> WARNING:" "$@"; } >&2 msg() { out "==>" "$@"; } msg2() { out " ->" "$@";} die() { error "$@"; exit 1; } @@ -91,7 +92,9 @@ chroot_setup() { } chroot_teardown() { - umount "${CHROOT_ACTIVE_MOUNTS[@]}" + if (( ${#CHROOT_ACTIVE_MOUNTS[@]} )); then + umount "${CHROOT_ACTIVE_MOUNTS[@]}" + fi unset CHROOT_ACTIVE_MOUNTS } diff --git a/genfstab.in b/genfstab.in index 7663522..0ebb831 100644 --- a/genfstab.in +++ b/genfstab.in @@ -83,7 +83,8 @@ usage: ${0##*/} [options] root -L Use labels for source identifiers (shortcut for -t LABEL) -p Exclude pseudofs mounts (default behavior) -P Include pseudofs mounts - -t TAG Use TAG for source identifiers + -t TAG Use TAG for source identifiers (TAG should be one of: LABEL, + UUID, PARTLABEL, PARTUUID) -U Use UUIDs for source identifiers (shortcut for -t UUID) -h Print this help message diff --git a/pacstrap.in b/pacstrap.in index 72f2809..0c34df4 100644 --- a/pacstrap.in +++ b/pacstrap.in @@ -24,7 +24,7 @@ usage: ${0##*/} [options] root [packages...] -C config Use an alternate config file for pacman -c Use the package cache on the host, rather than the target -G Avoid copying the host's pacman keyring to the target - -i Avoid auto-confirmation of package selections + -i Prompt for package confirmation when needed -M Avoid copying the host's mirrorlist to the target -h Print this help message |
