Mount a tmpfs at /run
It was reported, in #97, that this is required when copying an existing system installation into the root filesystem. It is probably a good idea to do this all the time, to avoid the risk of stray junk ending up in /run during the install process. Suggested-by: Hevisko <hvjunk@gmail.com> Signed-off-by: Richard Laager <rlaager@wiktel.com>
This commit is contained in:
@@ -590,6 +590,7 @@ Step 4: System Configuration
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /proc /mnt/proc
|
||||
mount --rbind /sys /mnt/sys
|
||||
mount -t tmpfs tmpfs /mnt/run
|
||||
chroot /mnt /usr/bin/env DISK=$DISK bash --login
|
||||
|
||||
**Note:** This is using ``--rbind``, not ``--bind``.
|
||||
@@ -1040,6 +1041,7 @@ If needed, you can chroot into your installed environment::
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /proc /mnt/proc
|
||||
mount --rbind /sys /mnt/sys
|
||||
mount -t tmpfs tmpfs /mnt/run
|
||||
chroot /mnt /bin/bash --login
|
||||
mount /boot
|
||||
mount -a
|
||||
|
||||
@@ -697,6 +697,7 @@ Step 4: System Configuration
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /proc /mnt/proc
|
||||
mount --rbind /sys /mnt/sys
|
||||
mount -t tmpfs tmpfs /mnt/run
|
||||
chroot /mnt /usr/bin/env DISK=$DISK UUID=$UUID bash --login
|
||||
|
||||
**Note:** This is using ``--rbind``, not ``--bind``.
|
||||
@@ -1173,6 +1174,7 @@ If needed, you can chroot into your installed environment::
|
||||
mount --rbind /dev /mnt/dev
|
||||
mount --rbind /proc /mnt/proc
|
||||
mount --rbind /sys /mnt/sys
|
||||
mount -t tmpfs tmpfs /mnt/run
|
||||
chroot /mnt /bin/bash --login
|
||||
mount -a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user