Re-create /etc/fstab in the fsscript and add code to local.start to copy the kernel/initramfs from the CD's root and rename it to what was built by genkernel and expected.
svn path=/trunk/; revision=533
This commit is contained in:
parent
e58ec65cd4
commit
8ee6fcfdbe
|
@ -2,6 +2,11 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
06 Jun 2008; Chris Gianelloni <wolf31o2@gentoo.org> scripts/livecd.sh:
|
||||
Re-create /etc/fstab in the fsscript and add code to local.start to copy the
|
||||
kernel/initramfs from the CD's root and rename it to what was built by
|
||||
genkernel and expected.
|
||||
|
||||
05 Jun 2008; Chris Gianelloni <wolf31o2@gentoo.org>
|
||||
kconfig/amd64/livecd-2.6.24.config,
|
||||
specs/alpha/installcd-stage2-minimal.spec,
|
||||
|
|
|
@ -30,3 +30,29 @@ if [[ -d /home/gentoo ]]
|
|||
then
|
||||
chown -R gentoo:users /home/gentoo
|
||||
fi
|
||||
|
||||
echo "#####################################################" > /etc/fstab
|
||||
echo "## ATTENTION: THIS IS THE FSTAB ON THE LIVECD ##" >> /etc/fstab
|
||||
echo "## PLEASE EDIT THE FSTAB at /mnt/gentoo/etc/fstab ##" >> /etc/fstab
|
||||
echo "#####################################################" >> /etc/fstab
|
||||
|
||||
# fstab tweaks
|
||||
echo "tmpfs / tmpfs defaults 0 0" >> /etc/fstab
|
||||
echo "tmpfs /lib/firmware tmpfs defaults 0 0" >> /etc/fstab
|
||||
echo "tmpfs /usr/portage tmpfs defaults 0 0" >> /etc/fstab
|
||||
echo "tmpfs /boot tmpfs defaults 0 0" >> /etc/fstab
|
||||
|
||||
# pull /boot from the CD
|
||||
cd /boot && ls -1 | grep -v boot > /usr/livecd/bootfiles.txt
|
||||
mv -f System.map* /usr/livecd
|
||||
cat << EOF >> /etc/conf.d/local.start
|
||||
INITR_TMP=`ls -1 /mnt/cdrom/*/*.gz | head -n 1`
|
||||
INITRAMFS=`basename ${INITR_TMP}`
|
||||
KERNEL=${INITRAMFS/.gz/}
|
||||
initramfs=`grep initr /usr/livecd/bootfiles.txt | head -n 1`
|
||||
kernel=`grep kernel /usr/livecd/bootfiles.txt | head -n 1`
|
||||
cp -f /mnt/cdrom/*/${INITRAMFS} /boot/${initramfs}
|
||||
cp -f /mnt/cdrom/*/${KERNEL} /boot/${kernel}
|
||||
mv -f /usr/livecd/System.map* /boot
|
||||
EOF
|
||||
|
||||
|
|
Loading…
Reference in a new issue