Bob MillerMon Mar 28 09:00:11 PST 2005
T. Joseph CARTER wrote:
> <@insomnia> it only takes three commands to install Gentoo
> <@insomnia> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1
> /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && .
> /etc/profile && emerge sync && cd /usr/portage &&
> scripts/bootsrap.sh && emerge system && emerge vim && vi
> /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux
> && make menuconfig && make install modules_install && emerge
> gnome mozilla-firefox openoffice && emerge grub && cp
> /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi
> /boot/grub/grub.conf && grub && init 6
> <@insomnia> that's the first one
(a) He forgot the tar step between the mount and the chroot.
(b) chroot starts a subshell. Should be
... && chroot /mnt/gentoo sh -c 'env-update && ... && grub' && init 6
(b) You could make this idempotent with a little error recovery...
cfdisk ... && mkfs ... && mount ... && (tar ... && chroot ... && \
init 6 || umount /dev/hda1)
That way, if it fails, just hit the up-arrow key, edit the command
a bit, and try again. (-:
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com kbob at jogger-egg.com