Last active
May 11, 2016 09:06
-
-
Save rbn42/41ed1ceb026836bbf38fc1f1f03af2b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export DEV_ROOT=/dev/sda7 | |
umount $DEV_ROOT | |
mkfs.ext4 $DEV_ROOT | |
mkdir /mnt/installer | |
mount $DEV_ROOT /mnt/installer | |
ln -s /mnt/installer /mnt/funtoo | |
#開始下載stage3 | |
cd /mnt/funtoo | |
wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz | |
tar xpf stage3-latest.tar.xz | |
#生成fstab | |
export ROOT_UUID=$(blkid /dev/sda7 -s UUID -o value) | |
export HOME_UUID=$(blkid /dev/sda5 -s UUID -o value) | |
echo UUID=$ROOT_UUID / ext4 errors=remount-ro 0 1 > /mnt/installer/etc/fstab | |
echo \#UUID=$HOME_UUID /home ext4 defaults 0 2 >> /mnt/installer/etc/fstab | |
#chroot進入funtoo stage3系統 | |
cp /etc/resolv.conf /mnt/funtoo/etc/ | |
cd /mnt/funtoo | |
mount -t proc none proc | |
mount --rbind /sys sys | |
mount --rbind /dev dev | |
chroot /mnt/funtoo | |
emerge --sync | |
emerge -auDN @world | |
#編譯debian內核 | |
emerge debian-sources |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment