-
Notifications
You must be signed in to change notification settings - Fork 331
Open
Description
the ostree hook shipped within usr/lib/initcpio/install/ostree
which i'm sure is src/boot/mkinitcpio/ostree
contain no help or information at all, this is evident when you run mkinitcpio -H ostree
and just give ==> ERROR: No help for hook ostree
, this can be fixed giving a help in the hook
this is an example of base
hook:
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
build() {
local applet
for applet in $(/usr/lib/initcpio/busybox --list); do
add_symlink "/usr/bin/$applet" busybox
done
add_binary /usr/lib/initcpio/busybox /bin/busybox
# add kmod with applet symlinks
add_binary kmod
for applet in {dep,ins,rm,ls}mod mod{probe,info}; do
add_symlink "/usr/bin/$applet" kmod
done
add_binary blkid
map add_binary mount umount
add_binary switch_root
add_binary "/usr/lib/initcpio/init_functions" "/init_functions"
add_binary "/usr/lib/initcpio/init" "/init" 755
}
help() {
cat <<HELPEOF
This hook provides crucial runtime necessities for booting. DO NOT
remove this hook unless you know what you're doing.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et:
while this is the ostree hook
#!/bin/bash
build() {
add_binary /usr/lib/ostree/ostree-prepare-root
add_binary /usr/lib/ostree/ostree-remount
add_file /usr/lib/systemd/system/ostree-prepare-root.service
add_symlink /usr/lib/systemd/system/initrd-root-fs.target.wants/ostree-prepare-root.service \
/usr/lib/systemd/system/ostree-prepare-root.service
}
in the actual state i don't even know what its does, where on bethwheen which hook i can place it or what does.
JotaRandom
Metadata
Metadata
Assignees
Labels
No labels