]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/kernel-install/00-entry-directory.install
2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
9 INITRD_OPTIONS_START
="5"
11 if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
15 if [[ $COMMAND != add
]]; then
19 # If the boot dir exists (e.g. $ESP/<machine-id>),
20 # create the entry directory ($ESP/<machine-id>/<kernel-version>).
21 # This is the only function of this plugin.
22 MACHINE_ID_DIR
="${ENTRY_DIR_ABS%/*}"
23 if ! [ -d "$MACHINE_ID_DIR" ]; then
27 if [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ]; then
28 echo "+mkdir -v -p $ENTRY_DIR_ABS"
29 exec mkdir
-v -p "$ENTRY_DIR_ABS"
31 exec mkdir
-p "$ENTRY_DIR_ABS"