about summary refs log tree commit diff stats
path: root/core/scripts/act-chroot.sh
blob: 317b5b7e03f72e9f8319c31414a7322289409afe (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
#!/bin/bash


CHROOT="/mnt"

#DEV=$1
#
###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"
#
#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