diff options
author | Silvino Silva <silvino@bk.ru> | 2021-02-12 03:59:34 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2021-02-12 03:59:34 +0000 |
commit | a3628fc49db4d88ff3e4067268650710d1da3f6f (patch) | |
tree | 8fdac6dfc8cabb9f85a2db3a3bd628cfe44438cd /linux/scripts/act-chroot.sh | |
parent | 0a6b0fc9769daf0932cb207c3285baa31547b489 (diff) | |
download | doc-a3628fc49db4d88ff3e4067268650710d1da3f6f.tar.gz |
initial openbsd support
Diffstat (limited to 'linux/scripts/act-chroot.sh')
-rw-r--r-- | linux/scripts/act-chroot.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/scripts/act-chroot.sh b/linux/scripts/act-chroot.sh new file mode 100644 index 0000000..29103b1 --- /dev/null +++ b/linux/scripts/act-chroot.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +CHROOT="/mnt" + +mkdir -p $CHROOT/boot/efi +mkdir -p $CHROOT/media + +mkdir -p $CHROOT/dev +mkdir -p $CHROOT/tmp +mkdir -p $CHROOT/proc +mkdir -p $CHROOT/sys + +mount -t proc proc $CHROOT/proc +mount -t sysfs sys $CHROOT/sys +mount --bind /dev $CHROOT/dev |