In other words, using the debirf tool you build a kernel and initrd. The initrd is also the root filesystem. Everything gets loaded into RAM and your hard drives are untouched.CMRG wrote:debirf is a system that will create diskless, all-in-ram images (kernel and initramfs) that boot entirely into ram and leave the user in a fully functional Debian system.
What I've documented here are just my own experiences. I'm certainly no expert on debirf. This howto only proves that I'm able to read a manual. The intention here is to start a discussion on what might just be the El Dorado of RAM booting.
This is all done as $USER with the exception of apt-get and editing menu.lst.
Getting started
Code: Select all
apt-get install debirf
Code: Select all
nano /usr/share/doc/debirf/README
man debirf
debirf help
Code: Select all
$ mkdir ~/debirf
$ cd ~/debirf
$ tar xzf /usr/share/doc/debirf/example-profiles/xkiosk.tgz
$ debirf make xkiosk
Have a look at debirf/<module>/debirf.conf. There you will find some possibility of customization e.g. mirror and distro (Lenny, Sid)
Also of interest would be debirf/<module>/modules.
If you're booted to Lenny you should automatically get the default Lenny kernel. I was booted into sidux and decided to use the sidux kernel so I utilised the -k switch.
Code: Select all
debirf make -k /var/cache/apt/archives/linux-image-2.6.28-0.slh.10-sidux-686_2.6.28-10_i386.deb xkiosk
/snip/
Code: Select all
debirf: modules complete.
debirf: creating debirf initrd ('nested')...
222 blocks
2529 blocks
292 blocks
debirf: creating rootfs.cgz...
637062 blocks
debirf: creating wrapper cgz...
271538 blocks
debirf: debirf initrd created.
debirf: kernel: xkiosk/vmlinuz-2.6.28-0.slh.10-sidux-686
debirf: initrd: xkiosk/debirf-xkiosk_lenny_2.6.28-0.slh.10-sidux-686.cgz
Code: Select all
title Debirf w/ sidux kernel
kernel /home/glenn/debirf/xkiosk/vmlinuz-2.6.28-0.slh.10-sidux-686 vga=791
initrd /home/glenn/debirf/xkiosk/debirf-xkiosk_lenny_2.6.28-0.slh.10-sidux-686.cgz
*Notes*
There is no root in this menu.lst entry as it is unnecessary.
There is no root password on the minimal build.
You will be prompted for a root password on the xkiosk build.
/snip/
Code: Select all
Set password for debirf-xkiosk superuser:
Enter new UNIX password:
Retype new UNIX password:
More to come.......