diff options
author | Silvino Silva <silvino@bk.ru> | 2017-08-02 01:18:23 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2017-08-02 01:18:23 +0100 |
commit | c0148601ebe2196375f26572624590cad2751845 (patch) | |
tree | 0f40548a2b5c8eaf9bd99423e21b8baf63b83d65 /core/scripts/act-chroot.sh | |
parent | 5ff68b8c191272fe9c80765fa6ac11c18aee3224 (diff) | |
parent | 65167272a3ba52dc4d032a1c60a9ff030408047d (diff) | |
download | doc-c0148601ebe2196375f26572624590cad2751845.tar.gz |
Merge branch 'r-0.3.1' into develop
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 |