dev-python/conda-libmamba-solver: bump version to 24.11.1
[gentoo-zh.git] / sys-kernel / mkinitcpio / files / initcpio-install-base
blob872affd666b999b028bb8003799f6f18eb4119af
1 #!/bin/bash
3 build() {
4 local applet
6 add_binary /usr/lib/initcpio/busybox /usr/bin/busybox
7 add_symlink "/bin" /usr/bin
9 for applet in $(busybox --list | grep -v busybox); do
10 add_symlink "/usr/bin/$applet" /usr/bin/busybox
11 done
13 add_binary /usr/lib/initcpio/busybox /usr/bin/sh
15 # add kmod with applet symlinks
16 add_binary kmod
17 for applet in {dep,ins,rm,ls}mod mod{probe,info}; do
18 add_symlink "/usr/bin/$applet" kmod
19 done
21 add_binary blkid
22 add_binary mount
23 add_binary switch_root
25 add_file "/usr/lib/initcpio/init_functions" "/init_functions"
26 add_file "/usr/lib/initcpio/init" "/init"
29 help() {
30 cat <<HELPEOF
31 This hook provides crucial runtime necessities for booting. DO NOT
32 remove this hook unless you know what you're doing.
33 HELPEOF