home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
-
- # Script to create an initial LILO config file & initrd.
- #
- # Usage:
- # dolilo [args]
- #
- # args: cf. mk_lilo_conf
- #
- # Example:
- #
- # dolilo /blub -m /dev/hda
- #
- # As an alternative, specify the root & boot devices via environment
- # variables. e.g.: rootdev=/dev/hda bootdev=/dev/hda1 mk_lilo_conf
- #
- # on errors:
- # exit code > 0
- #
- # Version 1.06
- #
- # Author: Steffen Winterfeldt <wfeldt@suse.de>
- # (c) 1999 SuSE GmbH
-
-
- root_dir=$1
- [ "$root_dir" ] || root_dir=/
-
- PATH=/lib/YaST2/bin:$root_dir/lib/YaST2/bin:$root_dir/sbin:$PATH
-
- # create a fallback kernel
- cp $root_dir/boot/vmlinuz $root_dir/boot/vmlinuz.suse || exit 31
-
- # make an initial ram disk
- mk_initrd $root_dir || exit $?
-
- # configure lilo
- mk_lilo_conf "$@" || exit $?
-
-