From f1721edda7ccca6fdcf397086b88c71f292073a8 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Wed, 30 Dec 2020 23:49:06 -0600 Subject: [PATCH] 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 Signed-off-by: Richard Laager --- docs/Getting Started/Debian/Debian Buster Root on ZFS.rst | 2 ++ docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst index df47549..cd422fa 100644 --- a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst @@ -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 diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index b1ff593..10b0943 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -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