Next: , Previous: , Up: Installation   [Contents]

1.5 Making your system bootable

In order to be able to boot your fresh system, wou will need an init-daemon, init-scripts and a bootloader. The init daemon is already provided by busybox, but you can optionally change it.

1.5.1 Installing a bootloader

In the main repository, there is efibootmgr and grub to serve as bootloaders. efibootmgr can be used as a standalone bootloader, or can be used to install grub in a UEFI environment. efibootmgr is needed unless you are using a device without UEFI support (or you really want to use BIOS for a reason).

GRUB BIOS installation

$ cpt b grub && cpt i grub
$ grub-install --target=i386-pc /dev/sdX
$ grub-mkconfig -o /boot/grub/grub.cfg

GRUB UEFI installation

$ cpt b efibootmgr && cpt i efibootmgr
$ cpt b grub && cpt i grub

$ grub-install --target=x86_64-efi \
               --efi-directory=esp \

$ grub-mkconfig -o /boot/grub/grub.cfg

1.5.2 Installing init scripts

Only thing left to do is installing the init-scripts, and now you are almost ready to boot your system!

$ cpt b carbs-init && cpt i carbs-init

1.5.3 Generating fstab

You can now manually edit your fstab entry, or you can use the genfstab tool. If you want to use the tool, exit the chroot and run the following:

$ wget
$ chmod +x genfstab
$ ./genfstab -U /mnt >> /mnt/etc/fstab