44
55[ ![ Master Status] ( https://dev.azure.com/random-archer/mkinitcpio-systemd-tool/_apis/build/status/random-archer.mkinitcpio-systemd-tool?branchName=master )] ( https://dev.azure.com/random-archer/mkinitcpio-systemd-tool/_build/latest?definitionId=1&branchName=master )
66
7- ### Summary
7+ ### Summary
88
99<details >
1010<summary >
@@ -19,14 +19,14 @@ Provisioning tool for systemd in initramfs (systemd-tool):
1919Core features provided by the hook:
2020* unified systemd + mkinitcpio configuration
2121* automatic provisioning of binary and config resources
22- * on-demand invocation of mkinitcpio scripts and in-line functions
22+ * on-demand invocation of mkinitcpio scripts and in-line functions
2323
2424Features provided by the included service units:
2525* initrd debugging
2626* early network setup
2727* interactive user shell
2828* remote ssh access in initrd
29- * cryptsetup + custom password agent
29+ * cryptsetup + custom password agent
3030
3131</details >
3232
@@ -72,7 +72,7 @@ systemctl reboot
7272### Install Details
7373
7474` pacman ` install actions:
75- * take a look in [ arch repo] ( https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/mkinitcpio-systemd-tool )
75+ * take a look in [ arch repo] ( https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/mkinitcpio-systemd-tool )
7676 and [ make file] ( https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/Makefile )
7777* provision user config and vendor systemd units into:
7878* ` /etc/mkinitcpio-systemd-tool ` (with backup)
@@ -82,7 +82,7 @@ systemctl reboot
8282* look for enabled units in the ` /etc/systemd/system `
8383* include in initrd units containing marker ` /etc/initrd-release `
8484* activate transitively in initrd any discovered systemd service units
85- * auto provision into initramfs resources declared inside initrd service units
85+ * auto provision into initramfs resources declared inside initrd service units
8686
8787### Provisioning Questions and Answers
8888
@@ -98,17 +98,17 @@ how can I customize installed service units?
9898
9999how can I review generated ` /boot/initramfs-linux.img ` ?
100100* to review ` initramfs.img ` after ` mkinitcpio ` but before ` reboot ` , use:
101- * visually, with [ midnight commander] ( https://www.archlinux.org/packages/community/x86_64/mc/ )
102- or scripted, with [ mkinitcpio lsinitcpio] ( https://wiki.archlinux.org/index.php/Mkinitcpio#Extracting_the_image )
101+ * visually, with [ midnight commander] ( https://www.archlinux.org/packages/community/x86_64/mc/ )
102+ or scripted, with [ mkinitcpio lsinitcpio] ( https://wiki.archlinux.org/index.php/Mkinitcpio#Extracting_the_image )
103103
104104how systemd unit transitive dependency provisioning works?
105105* see ` mkinitcpio-install.sh/add_systemd_unit_X() `
106- * units found in ` [Unit]/Requires|OnFailure ` are recursively installed
106+ * units found in ` [Unit]/Requires|OnFailure ` are recursively installed
107107
108108what is the purpose of ` [X-SystemdTool] ` section in service unit files?
109109* see https://github.com/systemd/systemd/issues/3340
110110* this section provides configuration interface for ` mkinitcpio ` provisioning actions
111- * directives: ` InitrdPath ` ` InitrdLink ` ` InitrdBinary ` ` InitrdBuild ` ` InitrdCall ` ` InitrdUnit `
111+ * directives: ` InitrdPath ` ` InitrdLink ` ` InitrdBinary ` ` InitrdBuild ` ` InitrdCall ` ` InitrdUnit `
112112
113113how can I auto-provision my custom service unit binaries into initramfs?
114114* use ` InitrdBinary=/path/target-exec ` to provision service binary
@@ -121,10 +121,10 @@ how can I relocate folder during provisioning?
121121* not implemented, source and target folder must use the same location
122122
123123how can I relocate file and/or change file mode during provisioning?
124- * use ` InitrdPath=/target-file source=/source-file mode=NNN `
124+ * use ` InitrdPath=/target-file source=/source-file mode=NNN `
125125
126126how can I filter directory content during provisioning?
127- * use ` InitrdPath=/target-folder glob=*.example `
127+ * use ` InitrdPath=/target-folder glob=*.example `
128128
129129how can I provision optional folder or file?
130130* use ` InitrdPath=/target-file source=/source-file optional=yes `
@@ -134,40 +134,40 @@ is there a way to create empty folder or file?
134134* for empty file, use ` InitrdPath=/path/target-file create=yes ` note NO trailing slash
135135
136136how can I provision a symbolic link?
137- * use ` InitrdLink=/path-to-link/link-name /path-to-target/target-name `
138- * note that ` /path-to-target/target-name ` must be provisioned separately
137+ * use ` InitrdLink=/path-to-link/link-name target= /path-to-target/target-name `
138+ * note that link target ` /path-to-target/target-name ` must be provisioned separately
139139
140140can I invoke a provisioning script related to my service during mkinitcpio build time?
141- * use ` InitrdBuild=/path-to/script.sh command=function_name `
141+ * use ` InitrdBuild=/path-to/script.sh command=function_name `
142142
143143can I call a little provisioning script snippet during mkinitcpio build time?
144144* check for available ` mkinitcpio ` functions in ` /usr/lib/initcpio/functions.sh `
145- * use ` InitrdCall=inline-bash-code-here ` to call these functions
145+ * use ` InitrdCall=inline-bash-code-here ` to call these functions
146146
147147how can I provide custom interactive user shell for ssh client
148- * change sample shell file located in ` /usr/lib/mkinitcpio-systemd-tool/initrd-shell.sh `
148+ * change sample shell file located in ` /usr/lib/mkinitcpio-systemd-tool/initrd-shell.sh `
149149
150150which ssh user keys are used by initramfs sshd server(s)?
151151* they come from host ` /root/.ssh/authorized_keys `
152152
153153### Shell Script Questions and Answers
154154
155155there is a ` initrd-shell.sh ` script provided, what does it do?
156- * it is used as both interactive login shell and as a systemd service
156+ * it is used as both interactive login shell and as a systemd service
157157* when crypto disks are present, it acts as password agent
158158* when in ssh console, it offers simple interactive menu
159- * when in systemd service mode, it acts as service
159+ * when in systemd service mode, it acts as service
160160
161161how can I review ` initrd-shell.sh ` actions during last boot?
162162* use ` journalctl -b -t shell `
163163
164164what does ` CTRL-C ` do to ` initrd-shell.sh ` in different modes?
165165* ` initrd-shell.sh ` provides appropriate reaction to interrupt, depending on the context
166166* while in ` ssh ` terminal password agent prompt, it will start a menu form ` initrd-shell.sh `
167- * while in ` /dev/tty ` local debug console, it will exit from ` initrd-shell.sh `
167+ * while in ` /dev/tty ` local debug console, it will exit from ` initrd-shell.sh `
168168* while in ` /dev/console ` password agent prompt, it will restart the ` initrd-shell.sh ` service
169169
170170is there a silent or no-echo mode during password entry in ` initrd-shell.sh ` ?
171171* there are two ways to enter silent mode (see ` systemd-ask-password.c ` ):
172172* either by pressing ` BACKSPACE ` as first key or by pressing ` TAB ` at any time
173- * then the prompt will show extra text: ` (no echo) `
173+ * then the prompt will show extra text: ` (no echo) `
0 commit comments