[Voyage-linux] PATCH: prevent /sys /proc /dev and /tmp/cf from being copied by copyfiles.sh / alternate network installation procedure
Christian Recktenwald
(spam-protected)
Wed Sep 30 02:30:56 HKT 2009
what is this about?
there are situations where the content of the virtual file systems
could and will be copied to the new installation media, which
is pointless.
I tried to figure out how I could install an ALIX box
via DHCP/TFTP/NFS.
The documented way I found urged me to create
two loopback mounts:
- the iso-image
- the squashfs
that seems to be a kind of bulky to me, esp.
as my debian lenny system can't handle squashfs-4.0 with
the stock kernel.
so I tried something different:
on nfs:/serv
tar -xvjpf voyage-current.tar.bz2
/serv is nfs-exported
pxelinux.cfg/alix:
APPEND initrd=voyage/initrd.img autoinstall=alix boot=live netboot=nfs nfsroot=192.168.0.247:/serv/voyage-current ip=dhcp root=/dev/nfs live-getty noautologin all_generic_ide console=ttyS0,38400n8 debug verbose
so I get voyage-current/ mounted on /live/image (for testing purpose this time)
then I have to copy & paste the following lines on the
(initramfs) prompt:
mount -o bind /dev /live/image/dev
mount -t proc proc /live/image/proc
mount -t sysfs sysfs /live/image/sys
mount -t tmpfs tmp /live/image/tmp
mkdir /live/image/tmp/cf
chroot /live/image
CFDISK=/dev/hda
CFPARTNR=1
./usr/local/sbin/voyage.update -i -P ALIX -t $CFDISK -p $CFPARTNR -m /tmp/cf -b $CFPARTNR -g -s 38400 -c serial -d / -f
and get my boxes up and running
Comments are welcome
--
LiHAS - Adrian Reyer - Krehlstra??e 1 - D-70563 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91
Mail: lihas at lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copyfiles.sh.diff
Type: text/x-diff
Size: 1182 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20090929/1c6e2ed5/attachment.diff>
More information about the Voyage-linux
mailing list