summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-10-15 18:50:56 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-10-15 18:50:56 -0700
commit7e2adac72c48fa43e8fa3d8ef4592e1b6e1a323f (patch)
tree27b30e5b6e9e162d7c26390745e51d450a34e9ef
parent65d386673017675e0e7b7639b26896f4b3dedb82 (diff)
downloadwiki-7e2adac72c48fa43e8fa3d8ef4592e1b6e1a323f.tar.gz
chroot with unshare --uts
-rw-r--r--tech/cheatsheet.mdwn3
1 files changed, 2 insertions, 1 deletions
diff --git a/tech/cheatsheet.mdwn b/tech/cheatsheet.mdwn
index f7b4ab5..de98546 100644
--- a/tech/cheatsheet.mdwn
+++ b/tech/cheatsheet.mdwn
@@ -13,7 +13,8 @@ It's the LVM part that I don't seem to be able to memorise.
5. `mount /dev/vg-foo/lv-bar /target`
6. `mount /dev/sda1 /target/boot/efi`
7. `for i in /sys /proc /dev /run; do mount --rbind $i /target$i; done`
-8. `chroot /target /bin/bash`
+8. `chroot /target /bin/bash`, maybe prefixed with `unshare --uts` so that can
+ use hostname(1) to set the chroot's hostname independently of the host.
GRML is a decent live system. The PGP sigs for the releases are
signed by a DD, so can verify against the Debian keyring.