fix: make all rbound mountpoints also rslaves.
This commit is contained in:
parent
b3324498fb
commit
b78dea2dc7
|
@ -468,7 +468,7 @@ function format_zfs_standard() {
|
||||||
|| die "Could not create zfs pool on $devices_desc"
|
|| die "Could not create zfs pool on $devices_desc"
|
||||||
|
|
||||||
if [[ "$compress" != false ]]; then
|
if [[ "$compress" != false ]]; then
|
||||||
zfs set "compression=$compress" rpool/ROOT \
|
zfs set "compression=$compress" rpool \
|
||||||
|| die "Could enable compression on dataset 'rpool'"
|
|| die "Could enable compression on dataset 'rpool'"
|
||||||
fi
|
fi
|
||||||
zfs create rpool/ROOT \
|
zfs create rpool/ROOT \
|
||||||
|
@ -926,8 +926,12 @@ function gentoo_chroot() {
|
||||||
einfo "Mounting virtual filesystems"
|
einfo "Mounting virtual filesystems"
|
||||||
(
|
(
|
||||||
mountpoint -q -- "$chroot_dir/proc" || mount -t proc /proc "$chroot_dir/proc" || exit 1
|
mountpoint -q -- "$chroot_dir/proc" || mount -t proc /proc "$chroot_dir/proc" || exit 1
|
||||||
mountpoint -q -- "$chroot_dir/run" || mount --rbind /run "$chroot_dir/run" || exit 1
|
mountpoint -q -- "$chroot_dir/run" || {
|
||||||
mountpoint -q -- "$chroot_dir/tmp" || mount --rbind /tmp "$chroot_dir/tmp" || exit 1
|
mount --rbind /run "$chroot_dir/run" &&
|
||||||
|
mount --make-rslave "$chroot_dir/run"; } || exit 1
|
||||||
|
mountpoint -q -- "$chroot_dir/tmp" || {
|
||||||
|
mount --rbind /tmp "$chroot_dir/tmp" &&
|
||||||
|
mount --make-rslave "$chroot_dir/tmp"; } || exit 1
|
||||||
mountpoint -q -- "$chroot_dir/sys" || {
|
mountpoint -q -- "$chroot_dir/sys" || {
|
||||||
mount --rbind /sys "$chroot_dir/sys" &&
|
mount --rbind /sys "$chroot_dir/sys" &&
|
||||||
mount --make-rslave "$chroot_dir/sys"; } || exit 1
|
mount --make-rslave "$chroot_dir/sys"; } || exit 1
|
||||||
|
|
Loading…
Reference in New Issue