fractionnement du script install_sys.sh en plusieur petit script

This commit is contained in:
Jérémy MANSON
2017-10-17 09:23:01 +02:00
parent a7e7aa9e2b
commit f647224a81
8 changed files with 51 additions and 51 deletions

13
extract_and_mount.sh Normal file
View 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