blob: c39111ceeb20281b0a7866d90fe7df7ec0137918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/bash
check() {
# Only include the module if another module requires it
return 255
}
depends() {
echo debug
}
install() {
# do not compress, do not strip
export compress="cat"
export do_strip="no"
export do_hardlink="no"
export early_microcode="no"
export hostonly_cmdline="no"
inst_simple /etc/os-release
inst_multiple mkdir ln dd stty mount poweroff umount setsid sync
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
[ -f "${_terminfodir}/l/linux" ] && break
done
inst_multiple -o "${_terminfodir}/l/linux"
inst_binary "${dracutbasedir}/dracut-util" "/usr/bin/dracut-util"
ln -s dracut-util "${initdir}/usr/bin/dracut-getarg"
ln -s dracut-util "${initdir}/usr/bin/dracut-getargs"
inst_script "${dracutbasedir}/modules.d/99base/dracut-lib.sh" "/lib/dracut-lib.sh"
inst_script "${dracutbasedir}/modules.d/99base/dracut-dev-lib.sh" "/lib/dracut-dev-lib.sh"
inst_script "$moddir/test-init.sh" "/sbin/init"
inst_multiple -o plymouth
}
|