From: <hzu...@ra...> - 2004-05-24 12:45:51
|
On 05/24/2004 01:57:41 AM Tim Tait wrote: >Tim Tait wrote: > >> >> Heiko Zuerker wrote: >> >>> All Done. >>> >>> But there's still a problem: >>> when the script copies the stuff onto the device, cp prints a warning >>> about omitting the directories grub and lilo. >>> Can you take a look at this? >>> >>> Heiko >>> >>> Tim Tait wrote: >>> >>>> Tim Tait wrote: >>>> >>>>> >>>>> In the process of fixing the broken gub/lilo support, I've made >>>>> some significant chnages to "install-on-usb", hopefully you will >>>>> find them as useful as I do. The diff as well as the complete file >>>>> is attached for easier review. Item (5) means install-on-usb should >>>>> be included inside the ISO as well, hence the mods to copy-base. >>>>> >>>>> Comments? >>>>> >>>>> Tim >>>>> >>>>> ---------------------------- >>>>> Changes: >>>>> 1. Fixed Grub/Lilo stuff to copy the bootcd.iso rather than the >>>>> whole contents. >>>>> >>>>> 2. Auto-replaced /dev/sda style device names with link contents >>>>> (who likes having to type that??) to allow to work with devfs. >>>>> >>>>> 3. Added prompts for formerly implict selections embedded in script >>>>> (such as choice of grub/lilo/syslinux) >>>>> >>>>> 4. Added prompt/support for initrd with ext2 (changes required >>>>> ramdisk block size) >>>>> >>>>> 5. Added ability to make the bootcd.iso from the actual DL CD >>>>> itself - solves chicken-and-egg problem, no need to get ISO and >>>>> Dist archive. In theory allows boot of target machine from CD and >>>>> self-install to USB/disk. I did not test this yet, but did install >>>>> CD based image OK. dd copy is done with info based on isosize so >>>>> does not have problems with CD-Rs and creates binary duplicate of >>>>> original iso. >>>>> >>>>> 6. Option to copy your own config file to disk, with option to use >>>>> different partition (recommended). >>>>> >>>>> 7. General code cleanup. >>>> >>>> >>>> >>>> >>>> Oops, one mistake with the sequence of events for the fdisk need to >>>> get the device before I can call fdisk. Last minute changes always >>>> get you:) Fixed now. >>>> >>>> Tim >>> >>> >> OK, I just ignore that warning now, not sure if there is a more >> elegant way to handle it. >> >> Also, cleaned up code a little more, moved the required disk format >> type warning to before the fdisk prompt, also fixed error if cfdisk >> was the selected tool (and made cfdisk the default as it is more user >> friendly), plus added option to edit the Lilo/Grub conf files before >> they are saved to device. >> >> I tested the self-install of booting from cd and installing to usb and >> it works. >> >> Tim > >Hey, I just tried the syslinux boot and it didn't get anywhere... I >usually use grub, can anyone see whats wrong? Should those files in >/boot on the CD not get put into the root dir? Did it work before? I >don't think I changed anything there... I should be able to take a look at it tomorrow. Heiko |