fc9a01e713
Takes the advantage of already symlinks created on /dev/disk/by-label/ by 60-persistent-storage.rules add by udev hook. Tested on: * Real machine as CD-ROM and USB key drive. * KVM as CD-ROM and DISK (for both modes, in combination with IDE and SCSI) * VirtualBox as IDE CD-ROM. IMPORTANT note: Since isohybrid is a hack, if more partitions are added to USB key drive, filesystem on these partitions MUST have LABEL, otherwise USB key will fail to boot. Anyway there is an option archisodevice=, to force and specific device where live-media reside. (Maybe isohybrid will change the hack method used in a future) More info at: http://mailman.archlinux.org/pipermail/arch-releng/2010-March/000890.html http://mailman.archlinux.org/pipermail/arch-releng/2010-March/000913.html Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
26 lines
651 B
Bash
26 lines
651 B
Bash
install ()
|
|
{
|
|
MODULES="cdrom ide-cd_mod ide-core ide-generic aufs squashfs isofs loop $(all_modules '/kernel/fs' | grep -v "nls") "
|
|
MODULES="${MODULES} $(checked_modules "/usb/host" | grep -ve "_cs" -e "sl811-hcd" -e "isp116x-hcd")"
|
|
MODULES=$(echo ${MODULES}) #trim whitespace
|
|
if [ "x${MODULES}" != "x" ]; then
|
|
MODULES="${MODULES} usb_storage sd_mod sr_mod"
|
|
fi
|
|
|
|
BINARIES=""
|
|
FILES=""
|
|
add_dir /tmpfs
|
|
add_dir /tmpfs.sqfs
|
|
add_dir /bootmnt
|
|
|
|
add_device /dev/loop0 b 7 0
|
|
|
|
add_binary /lib/udev/cdrom_id
|
|
|
|
add_file /lib/udev/rules.d/60-cdrom_id.rules
|
|
|
|
SCRIPT="archiso"
|
|
}
|
|
|
|
# vim:ft=sh:ts=4:sw=4:et:
|