View previous topic :: View next topic |
Author |
Message |
SwedishElk Tux's lil' helper

Joined: 19 Nov 2003 Posts: 79 Location: Stockholm, Sweden
|
Posted: Mon Jan 16, 2006 9:52 pm Post subject: Gentoo Stage 1 |
|
|
Hejsan.
Är det möjligt att bygga Gentoo från Stage 1 under VMWare, vill gärna använda datorn till annat medans jag bygger disten, för att sen montera den skarpt på hårddisken? Den ska ju vara byggd för den äkta hårdvaran fast byggd i den virtuella miljön. Några bra tips på länkar för detta? _________________ To learn but not think is pointless, to think but not learn is deangerus.
(Kung Fu Tse, Kina) |
|
Back to top |
|
 |
eroyf Retired Dev


Joined: 03 May 2004 Posts: 82
|
Posted: Wed Jan 18, 2006 10:38 am Post subject: |
|
|
Tror ikke det er svære end at gøre med en normal maskine, men har ikke prøvet det.
Hent stage1 filen smæk den ud følg guiden og cd /usr/portage/; scripts/bootstrap.sh og efter det emerge -e system
Regards
eroyf |
|
Back to top |
|
 |
TheCableMan n00b

Joined: 19 Nov 2004 Posts: 32
|
Posted: Fri Jan 20, 2006 9:47 pm Post subject: |
|
|
Du kan ju sitta och bygga i en annan *nix |
|
Back to top |
|
 |
mrcs Tux's lil' helper

Joined: 10 Oct 2003 Posts: 137
|
Posted: Tue Feb 07, 2006 6:48 pm Post subject: |
|
|
Jag skapade /mnt/gentoo och körde följande script:
Code: | #!/bin/bash
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -o bind /proc /mnt/gentoo/proc
mount -o bind /sys /mnt/gentoo/sys
mount -o bind /dev /mnt/gentoo/dev
mount -o bind /dev/pts /mnt/gentoo/dev/pts
mount -o bind /usr/portage /mnt/gentoo/usr/portage
echo "Don't forget these: env-update; source /etc/profile"
chroot /mnt/gentoo/ /bin/bash --login
umount /mnt/gentoo/proc
umount /mnt/gentoo/sys
umount /mnt/gentoo/dev/pts
umount /mnt/gentoo/dev
umount /mnt/gentoo/usr/portage |
Det mountar allt som behövs och umountar dito när du går ur. Bara lägga en stage1/2/3 i /mnt/gentoo först och sen köra scriptet. Sen är det bara att bygga på och du kan fortfarande använda burken till annat. |
|
Back to top |
|
 |
|