Initrd Management Flashcards

Obj 1.2 (21 cards)

1
Q

What is initrd

A

Initial RAM disk - temporary filesystem used during boot to load drivers before mounting root

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is initramfs

A

Initial RAM filesystem - modern replacement for initrd serving the same purpose

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Two main initrd management commands

A

mkinitrd and dracut

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which initrd tool is considered legacy

A

mkinitrd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which initrd tool is the modern standard

A

dracut

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

mkinitrd syntax

A

mkinitrd [options] <initrd-image> <kernel-version></kernel-version></initrd-image>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

dracut syntax

A

dracut [options] <initramfs-image> <kernel-version></kernel-version></initramfs-image>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

mkinitrd option to load module early

A

–preload=<module></module>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

mkinitrd option to add specific module

A

–with=<module></module>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

mkinitrd option to force image creation

A

-f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

mkinitrd option to disable compression

A

–nocompress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

dracut option to overwrite existing image

A

–force

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

dracut option to add specific drivers

A

–add-drivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

dracut option to exclude drivers

A

–omit-drivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

dracut option to disable compression

A

–no-compress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Key advantage of dracut

A

Dynamically includes only needed drivers and components

17
Q

Example mkinitrd command

A

mkinitrd –preload=ext4 –with=usb-storage -f –nocompress /boot/initrd-5.15.0.img 5.15.0

18
Q

Example dracut command

A

dracut –force –add-drivers “xfs nvme” –no-compress /boot/initramfs-5.15.0.img 5.15.0

19
Q

When initrd/initramfs is used

A

During boot process before mounting real root filesystem

20
Q

Purpose of initrd/initramfs

A

Load essential drivers and modules needed to access the root filesystem