dracut

From Kicksecure
Jump to navigation Jump to search
Advanced Documentation Previous page: grub Index page: Advanced Documentation Next page: Installation of Debian based Linux distributions in a folder chroot dracut
dracut logo

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. On Debian based operating systems such as Kicksecure this can be done using the following commands.

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 administrative ("root") rights.

1 Select your platform.

Kicksecure

2 Notes.

  • Sudoedit guidance: See Open File with Root Rights for details on why using sudoedit improves security and how to use it.
  • Editor requirement: Close Featherpad (or the chosen text editor) before running the sudoedit command.

3 Open the file with root rights.

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

Kicksecure-Qubes

2 Notes.

  • Sudoedit guidance: See Open File with Root Rights for details on why using sudoedit improves security and how to use it.
  • Editor requirement: Close Featherpad (or the chosen text editor) before running the sudoedit command.
  • Template requirement: When using Kicksecure-Qubes, this must be done inside the Template.

3 Open the file with root rights.

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

4 Notes.

  • Shut down Template: After applying this change, shut down the Template.
  • Restart App Qubes: All App Qubes based on the Template need to be restarted if they were already running.
  • Qubes persistence: See also Qubes Persistence
  • General procedure: This is a general procedure required for Qubes and is unspecific to Kicksecure-Qubes.

Others and Alternatives

2 Notes.

  • Example only: This is just an example. Other tools could achieve the same goal.
  • Troubleshooting and alternatives: If this example does not work for you, or if you are not using Kicksecure, please refer to Open File with Root Rights.

3 Open the file with root rights.

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]

Advanced Documentation Previous page: grub Index page: Advanced Documentation Next page: Installation of Debian based Linux distributions in a folder chroot

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!