File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11
11
# provide here mapper partition UUID (instead of kernel command line)
12
12
13
13
# <name> <device> <password> <options>
14
- swap UUID=${UUID_SWAP } none luks
15
- root UUID=${UUID_ROOT } none luks
14
+ # root UUID=${UUID_ROOT } none luks
15
+ # swap UUID=${UUID_SWAP } none luks
Original file line number Diff line number Diff line change 1
1
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool
2
2
3
- # TODO
4
- # currently systemd requires use of "root=" kenel argument for /sysroot mount
5
- # http://unix.stackexchange.com/questions/289672/kernel-init-without-root-parameter
6
-
7
3
# fstab: mappings for direct partitions
8
4
9
5
# fstab format:
13
9
# https://www.freedesktop.org/software/systemd/man/systemd-fstab-generator.html
14
10
# https://github.com/systemd/systemd/blob/master/src/fstab-generator/fstab-generator.c
15
11
12
+ # note: provide /sysroot/ folder inside initramfs disk image
13
+ # note: remove "root=/dev/mapper/root" stanza from kernel command line
14
+
16
15
# provide here root partition description (instead of kernel command line)
17
16
18
- # <file system> <dir> <type> <option> <dump> <pass>
19
- # /dev/mapper/swap none swap defaults 0 0
20
- # /dev/mapper/root /sysroot ext4 defaults,ro 0 1
17
+ # <file system> <dir> <type> <option> <dump> <pass>
18
+ # /dev/mapper/root /sysroot auto x-systemd.device-timeout=9999h 0 1
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ TTYPath=/dev/console
34
34
InitrdPath =/etc/crypttab source =/etc/mkinitcpio.d/crypttab replace =yes
35
35
InitrdPath =/etc/fstab source =/etc/mkinitcpio.d/fstab replace =yes
36
36
37
+ # provide folder for sysroot.mount
38
+ InitrdPath =/sysroot/ create =yes
39
+
37
40
# include cryptsetup binaries
38
41
InitrdBinary =/usr/bin/dmsetup
39
42
InitrdCall =add_module dm-crypt
You can’t perform that action at this time.
0 commit comments