3 # Before running, make sure 'vmlinuz' in this examples directory is a
4 # bootable Linux kernel or a symlink to one. You can just use any
5 # kernel out of the /boot directory for this.
9 # ln -s /boot/vmlinuz-NNN vmlinuz
11 # This creates a very minimal filesystem, just containing bash and a
12 # few command line utilities. One of the joys of Fedora is that even
13 # this minimal install is still 200 MB ...
15 ../febootstrap -i bash -i coreutils fedora-10 ./minimal
17 # Create the /init which is just a simple script to give users an
20 ( cd minimal && cat > init <<'__EOF__'
23 echo "Welcome to the minimal filesystem example"
30 # Convert the filesystem to an initrd image.
32 ../febootstrap-to-initramfs ./minimal > minimal-initrd.img
34 # This is needed because of crappiness with qemu.
37 dd if=/dev/zero of=zero bs=2048 count=1
39 # Now run qemu to boot this minimal system.
43 -kernel vmlinuz -initrd minimal-initrd.img \