ajout de deux script

This commit is contained in:
2017-10-14 15:20:59 +02:00
parent c8e1966bc4
commit 527703ca60
2 changed files with 47 additions and 0 deletions

21
install_sys.sh Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
SWAP=/dev/sda2
SYS=/dev/sda1
CHROOT=/mnt/gentoo
STAGE3=
SNAPSHOT=
REPO=https://repo.jmanson.fr
mkfs.ext4 $SYS
mkswap $SWAP
swapon $SWAP
mount $SYS $CHROOT
wget $REPO/$STAGE3
wget $REPO/$SNAPSHOT
tar xjf $STAGE3 -C $CHROOT
tar xjf $SNAPSHOT -C $CHROOT/usr
mount -t proc none $CHROOT/proc
mount -o bind /dev $CHROOT/dev
cp /etc/resolv.conf $CHROOT/etc/resolv.conf