Blame dracut-fadump-module-setup.sh
|
Kairui Song |
96a3fc |
#!/bin/bash
|
|
Kairui Song |
96a3fc |
|
|
Kairui Song |
96a3fc |
check() {
|
|
Kairui Song |
96a3fc |
return 255
|
|
Kairui Song |
96a3fc |
}
|
|
Kairui Song |
96a3fc |
|
|
Kairui Song |
96a3fc |
depends() {
|
|
Kairui Song |
96a3fc |
return 0
|
|
Kairui Song |
96a3fc |
}
|
|
Kairui Song |
96a3fc |
|
|
Kairui Song |
96a3fc |
install() {
|
|
Kairui Song |
96a3fc |
mv -f "$initdir/init" "$initdir/init.dracut"
|
|
Kairui Song |
96a3fc |
inst_script "$moddir/init-fadump.sh" /init
|
|
Kairui Song |
96a3fc |
chmod a+x "$initdir/init"
|
|
Kairui Song |
96a3fc |
|
|
Kairui Song |
96a3fc |
# Install required binaries for the init script (init-fadump.sh)
|
|
Kairui Song |
96a3fc |
inst_multiple sh modprobe grep mkdir mount
|
|
Kairui Song |
96a3fc |
if dracut_module_included "squash"; then
|
|
Kairui Song |
96a3fc |
inst_multiple cp pivot_root umount
|
|
Kairui Song |
96a3fc |
else
|
|
Kairui Song |
96a3fc |
inst_multiple ls mv switch_root
|
|
Kairui Song |
96a3fc |
fi
|
|
Kairui Song |
96a3fc |
}
|