about summary refs log tree commit diff stats
path: root/core/scripts/act-chroot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/scripts/act-chroot.sh')
-rw-r--r--core/scripts/act-chroot.sh54
1 files changed, 54 insertions, 0 deletions
diff --git a/core/scripts/act-chroot.sh b/core/scripts/act-chroot.sh
new file mode 100644
index 0000000..587e35c
--- /dev/null
+++ b/core/scripts/act-chroot.sh
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+printf "1.1.2 EFI block; (/dev/sda1):"
+#read BLK_EFI
+BLK_EFI="/dev/sda1"
+
+printf "1.1.2 boot block; (/dev/sda2):"
+#read BLK_BOOT
+BLK_BOOT="/dev/sda2"
+
+printf "1.1.2 root block; (/dev/sda3):"
+#read BLK_ROOT
+BLK_ROOT="/dev/sda3"
+#
+printf "1.1.2 var block; (/dev/sda4):"
+#read BLK_VAR
+BLK_VAR="/dev/sda4"
+#
+printf "1.1.2 usr block; (/dev/sda6):"
+#read BLK_USR
+BLK_USR="/dev/sda6"
+#
+printf "1.1.2 home block; (/dev/sda7):"
+#read BLK_HOME
+BLK_HOME="/dev/sda7"
+#
+printf "1.1.2 ports block; (/dev/sda8):\n"
+#read BLK_PRT
+BLK_PRT="/dev/sda8"
+
+printf "1.1.2 swap block; (/dev/sda9):\n"
+#read BLK_SWP
+BLK_SWP="/dev/sda9"
+
+printf "1.1.3 mount point to chroot (/mnt):"
+#read CHROOT
+CHROOT="/mnt"
+
+
+mount $BLK_ROOT $CHROOT
+
+mount $BLK_BOOT $CHROOT/boot
+mount $BLK_EFI $CHROOT/boot/efi
+
+mount $BLK_VAR $CHROOT/var
+mount $BLK_USR $CHROOT/usr
+#mount $BLK_PRT $CHROOT/usr/ports
+mount $BLK_HOME $CHROOT/home
+
+#mount -vt devpts devpts $CHROOT/dev/pts
+#mount -vt tmpfs shm $CHROOT/dev/shm
+mount -t proc proc $CHROOT/proc
+mount -t sysfs sys $CHROOT/sys
+mount --bind /dev $CHROOT/dev