blob: 7f665f0fe87984c0a5f0c11a196e3c5f177226cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#!/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
|