AddingDefaultBootoptions

From MorphixWiki

Jump to: navigation, search

chiace sittaviolo eltrrositva Content-Transfer-Encoding: binary

HomePage -> MorphixDevel

This si very out of date and should be removed...

===Short tutorial on how you can make certain bootoptions used by default

Contents

[edit] This is very out of date and should be removed

[edit] =

====All mkdir-commands have been neglected for clearity. Make sure you are root user before starting, as most commands need root privileges

[edit] ==

'mount -o loop ./base.iso /mnt/target' to mount the iso.

mount the boot.img to a directory, it's a 2.88 MB floppy image and thus writable: %%% 'cp -a /mnt/target/* /tmp/newiso/' %%% 'mount -o loop -t msdos /tmp/newiso/base/boot.img /tmp/bootimage' (you will need a kernel that has support for msdos filesystems).

The file with all the bootoptions is called syslinux.cfg. Open it in your favorite editor, and you'll see something like this. Note that there is a bug, that makes Knoppix/Morphix not recognize the first bootoption. Check this thread for info: http://morphix.sourceforge.net/modules/newbb/viewtopic.php?topic_id415&forum2&jump=1

DEFAULT vmlinuz %%% APPEND langus ramdisksize100000 init/etc/init noapic apmpower-off hdascsi hdbscsi hdcscsi hddscsi hdescsi hdfscsi hdgscsi hdhscsi vga791 splashsilent initrdminiroot.gz quiet BOOTIMAGEmorphix%%% <snip>%%% LABEL morphix%%% KERNEL vmlinuz%%% APPEND langus ramdisksize100000 init/etc/init noapic apmpower-off hdascsi hdbscsi hdcscsi hddscsi hdescsi hdfscsi hdgscsi hdhscsi vga791 splashsilent initrdminiroot.gz quiet BOOTIMAGEmorphix%%%

All you need to do, is add the bootoptions you normally enter at boottime to both APPEND-lines. If, for example, you prefer the default X size to be 1280x1024 and always seem to use alsa, change the lines to this:

DEFAULT vmlinuz%%% APPEND langus screen1280x1024 alsa ramdisksize100000 init/etc/init noapic apmpower-off hdascsi hdbscsi hdcscsi hddscsi hdescsi hdfscsi hdgscsi hdhscsi vga791 splashsilent initrdminiroot.gz quiet BOOTIMAGE=morphix%%% <snip>%%% LABEL morphix%%% KERNEL vmlinuz%%% APPEND langus screen1280x1024 alsa ramdisksize100000 init/etc/init noapic apmpower-off hdascsi hdbscsi hdcscsi hddscsi hdescsi hdfscsi hdgscsi hdhscsi vga791 splashsilent initrdminiroot.gz quiet BOOTIMAGE=morphix%%%

Save the file, close the editor and umount the boot.img directory: %%% 'umount /tmp/bootimage'

the boot.img in /tmp/newiso/base should then have been modified succesfully==== Add any modules you want to your directory in /tmp/newiso, and make a new iso using your favorite cdr-tool, or run the following from /tmp: %%%

[edit] ==

'mkisofs -pad -l -r -J -v -V "Morphix" -b base/boot.img -c base/boot.cat -hide-rr-moved -o ./Morphix.iso newiso/'

Personal tools