about summary refs log blame commit diff stats
path: root/core/scripts/act-chroot.sh
blob: 587e35c23196d1d5915004501c2fa712875e48fe (plain) (tree)
1
2
3
4
5
6
7
8
9
10

           
                                      
             

                   
                                       


                    
                                       

                    
 


                                      
 


                                      
 
                                       
              
                    
 






                                          

                                            



             


                            
                               


                          

                                 
 



                                        
                             
#!/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