fractionnement du script install_sys.sh en plusieur petit script
This commit is contained in:
13
extract_and_mount.sh
Normal file
13
extract_and_mount.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Préparer le système
|
||||
tar xjpf $CHROOT/$STAGE3 -C $CHROOT --xattrs --numeric-owner
|
||||
chmod 1777 $CHROOT/tmp
|
||||
mount -t proc /proc $CHROOT/proc
|
||||
mount --rbind /sys $CHROOT/sys
|
||||
mount --make-rslave $CHROOT/sys
|
||||
mount --rbind /dev $CHROOT/dev
|
||||
mount --make-rslave $CHROOT/dev
|
||||
test -L /dev/shm && rm /dev/shm && mkdir /dev/shm
|
||||
mount -t tmpfs -o nosuid,nodev,noexec shm /dev/shm
|
||||
chmod 1777 /dev/shm
|
||||
Reference in New Issue
Block a user