dracut

From Kicksecure
Jump to navigation Jump to search

dracut, an initrd generator

Introduction[edit]

Documentation for this is incomplete. Contributions are happily considered! See this for potential alternatives.

Find out which initrd Generator is installed[edit]

To check if dracut is already installed, run.

dpkg -l | grep dracut

To check if initramfs-tools is already installed, run.

dpkg -l | grep initramfs-tools

Installation[edit]

1. Notices.

Info Platform specific.

  • Debian: The following warning is applicable because dracut is not installed by default in Debian.
  • Kicksecure: The following warning is only applicable if dracut is not yet installed. In newer Kicksecure versions, dracut is installed by default.

To check your currently installed initrd generator, see Find out which initrd Generator is installed.

2. Warning.

warning Warning: There is a risk of the system becoming unbootable due to changes in the initrd creation tool.

  • General risk: The system may become unbootable when changing the initrd creation tool.
  • Backups: Always maintain backups and proceed with caution when making changes.
  • Dracut bug reports: If issues with dracut occur, do not report them here, as they are unrelated to Kicksecure.

3. Create folder /etc/dracut.conf.d.

sudo mkdir --parents /etc/dracut.conf.d

4. Open file /etc/dracut.conf.d/fix.conf in an editor with root rights.

Select your platform.

Kicksecure

See Open File with Root Rights for detailed instructions on why to use sudoedit for better security and how to use it.

Note: Mousepad (or the chosen text editor) must be closed before running the sudoedit command.

sudoedit /etc/dracut.conf.d/fix.conf

Kicksecure for Qubes

NOTES:

sudoedit /etc/dracut.conf.d/fix.conf

  • After applying this change, shutdown the Template.
  • All App Qubes based on the Template need to be restarted if they were already running.
  • This is a general procedure required for Qubes and unspecific to Kicksecure for Qubes.

Others and Alternatives

  • This is just an example. Other tools could achieve the same goal.
  • If this example does not work for you or if you are not using Kicksecure, please refer to this link.

sudoedit /etc/dracut.conf.d/fix.conf

5. Paste.

hostonly=yes hostonly_mode=sloppy

6. Save.

7. Install dracut and systemd-cryptsetup.

sudo apt install --no-install-recommends dracut systemd-cryptsetup

8. Done.

Installation of dracut has been completed.

Re-Generate dracut Initrd[edit]

sudo dracut -f

Bugs[edit]

Resources[edit]

Notification image

We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 13 year success story and maybe DONATE!