diff options
Diffstat (limited to 'core/scripts/act-chroot.sh')
-rw-r--r-- | core/scripts/act-chroot.sh | 65 |
1 files changed, 25 insertions, 40 deletions
diff --git a/core/scripts/act-chroot.sh b/core/scripts/act-chroot.sh index 7f665f0..5411bc5 100644 --- a/core/scripts/act-chroot.sh +++ b/core/scripts/act-chroot.sh @@ -1,50 +1,35 @@ #!/bin/bash -printf "1.1.2 EFI block; (/dev/sda1):" -#read BLK_EFI -BLK_EFI="/dev/sda1" +DEV=$1 -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" +CHROOT="/mnt" +##read BLK_EFI +BLK_EFI="${DEV}2" +##read BLK_BOOT +BLK_BOOT="${DEV}3" +##read BLK_ROOT +BLK_ROOT="${DEV}4" +##read BLK_VAR +BLK_VAR="${DEV}5" +##read BLK_USR +BLK_USR="${DEV}6" +##read BLK_SWP +BLK_SWP="${DEV}7" +##read BLK_HOME +BLK_HOME="${DEV}8" -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 $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 |