From 0feec4a50a00ca0fbb6ceffd5bb6f5d313e0a59f Mon Sep 17 00:00:00 2001 From: Morten Linderud Date: Sun, 26 Mar 2023 19:56:43 +0200 Subject: [PATCH] common: ensure /run is mounted with --make-private udev doesn't work in the chroot which prevents some tools like lsblk to retrieve the UUID of devices. This can be a bit problematic so instead of having /run mounted as a tmpfs, do a bind-mound from the rootfs and include `--make-private`. This is similar to the previous implemention. Fixes https://github.com/archlinux/arch-install-scripts/issues/24 Fixes https://github.com/archlinux/arch-install-scripts/pull/26 --- common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common b/common index c2dc038..6bdeb95 100644 --- a/common +++ b/common @@ -115,7 +115,7 @@ chroot_setup() { chroot_add_mount udev "$1/dev" -t devtmpfs -o mode=0755,nosuid && chroot_add_mount devpts "$1/dev/pts" -t devpts -o mode=0620,gid=5,nosuid,noexec && chroot_add_mount shm "$1/dev/shm" -t tmpfs -o mode=1777,nosuid,nodev && - chroot_add_mount run "$1/run" -t tmpfs -o nosuid,nodev,mode=0755 && + chroot_add_mount /run "$1/run" --bind --make-private && chroot_add_mount tmp "$1/tmp" -t tmpfs -o mode=1777,strictatime,nodev,nosuid }