[Voyage-linux] PATCH: prevent /sys /proc /dev and /tmp/cf from being copied by copyfiles.sh / alternate network installation procedure
Kim-man 'Punky' TSE
(spam-protected)
Wed Sep 30 09:31:24 HKT 2009
Hi Chris,
All your patches applied could be found in:
http://svn.voyage.hk/repos/voyage/trunk/voyage-util/
Regards,
Punky
Kim-man 'Punky' TSE wrote:
> Applied. Thanks.
>
> Christian Recktenwald wrote:
>> 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
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Voyage-linux mailing list
>> Voyage-linux at list.voyage.hk
>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>
>
>
--
Regards,
Punky
Voyage Solutions (http://solution.voyage.hk)
* Embedded Solutions and Systems
- Mesh Networking, Captive Portal, IP Surveillance, VoIP/PBX
- Network Engineering, Development Platform and Consultation
More information about the Voyage-linux
mailing list