common: Make run a tmpfs mount

Reverts aea51ba901
Fixes https://github.com/archlinux/arch-install-scripts/issues/15

Signed-off-by: Morten Linderud <morten@linderud.pw>
This commit is contained in:
Morten Linderud 2022-07-03 14:01:26 +02:00
parent 9ffd8bc6e3
commit 8a56133926
No known key found for this signature in database
GPG Key ID: 9C02FF419FECBE16

2
common
View File

@ -90,7 +90,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" --bind -r &&
chroot_add_mount run "$1/run" -t tmpfs -o nosuid,nodev,mode=0755 &&
chroot_add_mount tmp "$1/tmp" -t tmpfs -o mode=1777,strictatime,nodev,nosuid
}