Hello,
I'm doing a few routines each time I boot to the
lfslivecd-6.2-pre3 to setup my environment. I expect the number will
increase as I proceed. I would like to be able to have these saved and
automatically reloaded each time I reboot to the livecd as I'm now
thinking I'll just dump my RH9 for the whopping 2gb of space:) I have
started a script (start.sh) on hda5 (vfat) and was hoping to be able to
be able to get setup using one command after reboot:
mkdir /mnt/d; mount -t vfat /dev/hda5 /mnt/d; /mnt/d/start.sh
It is working (sort of), but I've run into a problem attempting to
copy a saved customized "xorg.conf" over the /etc/xorg.conf. I am
thinking that (and saw reference to) this is because initramfs can't be
added to. It strikes me as strange that using vim (while on livecd of
course) I can edit xorg.conf and it saves ok, but I cannot overwrite it!
interesting...
I have been searching mail archives and hints, but am not finding
much on working with the livecd initramfs or saving a custom
configuration. Is there one I'm missing? This is an interesting
subject to me and I would like to learn how to do this and would be
happy to later contribute a hint if I could make one up to your
standards. (I could try) I will include my script below. I apologize
if this is too elementary.
Thanks, Howard
cat start.sh
#!bin/bash
# This is a startup script to use as a second step after booting the
lfslivecd
# The first step would be to do:
# mkdir /mnt/d; mount -t vfat /dev/hda5 /mnt/d
# then we get our linix partition opened and mounted
mkdir /mnt/f; mount -t ext3 /dev/hda7 /mnt/f; ls /mnt/f
#
# then we get our xorg script exchanged
cp /mnt/d/linux/lfs/xorg.conf /etc/Xll/xorg.conf #(this isn't copying!)
# cat won't work either,,,su doesn't make a difference hmmm
# then what? I don't know yet... setup ppp?
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page