Requirements:
- 1. Latest Kermacs rev (1126)
2. Your own kernel / debian kernel / whatever kernel as long as it works.
3. Initrd of your choice (My long-time favorite: https://bitbucket.org/piotrkarbowski/better-initramfs)
4. Lilo sources (24.2 at this time of writing) -> https://lilo.alioth.debian.org/ftp/sour ... 4.2.tar.gz
5. A usb flashdrive
- 1. Extract kermacs to your flashdrive
2. Install LILO to your flashdrive, i like to compile it statically
Code: Select all
# mount /dev/sdX /tmp/kermacs # cp linuxbbq-kermacs-1126.txz /tmp/kermacs # cd /tmp/kermacs && tar xpvf linuxbbq-kermacs-1126.txz
3. Now that you have lilo installed to your flash-drive, move your kernel to its designated place in /tmp/kermacs/boot.Code: Select all
$ cd $lilo-source-dir # make alles # make DESTDIR=/tmp/kermacs install ###### remove the bloats ######## # rm -rf /tmp/kermacs/etc/initramfs /tmp/kermacs/etc/kernel
For example, i use towo/siduction's latest 4.3 kernel. So i just have to copy /boot/vmlinuz-4.3.0-towo.3-siduction-686-pae to /tmp/kermacs/boot, don't forget the initrd. Also copy the /lib/modules/$kernel-version directory to /tmp/kermacs/lib/modules/$kernel-version. If you're (like me) testing kermacs on a relatively new hardware: Z-170 Skylake which isn't supported by 3.xx kernel. The shipped kernel worked super fine with other hardware configuration. For an instruction of using the shipped kernel, take a look at Pidsley's post.
4. Symlink the kernel and initrd to the root (/) of kermacs. 'ls -l' should give you an idea what to symlink.
5. Write lilo.conf to /tmp/kermacs/etc/lilo.confYou can add debian.bmp to the lilo conf too (if that's your thing.)Code: Select all
boot=/dev/sdX default=Kermacs timeout=50 lba32 prompt compact # Kermacs entry image=/boot/vmlinuz-4.3.0-towo.3-siduction-686-pae initrd=/boot/initrd.img-4.3.0-towo.3-siduction-686-pae append="init=/linuxrc rootfstype=ext4" root=/dev/sdX1 read-only label=Kermacs
5. Chroot to your kermacs, and run liloCode: Select all
# cd /tmp/kermacs # for d in dev proc sys run; do mount --bind /$d $d; done # chroot . /bin/bash # /sbin/lilo.static
6. Reboot to the usb, and enjoy it.
You can for instance replace lilo with syslinux/grub, but since i really like lilo i haven't tried other bootloader(s). Hmmm not really, i've tried UEFI booting before, and it worked. Just uhhh nobody seems to care about uefi right?
EDIT_1: adding syslinux/grub part
EDIT_2: Fix typo