/
githubmirror
/
dracut
Обзор
Документация
Войти
/
githubmirror
/
dracut
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
050
modules.d/99squash/module-setup.sh
29 строк
768 B
Jan Macku
Replace ln with systemctl
14 янв 2020, 11:29
14 янв 2020, 11:29
70b19ac
Код
Авторство
О чём код?
#!/bin/bash check() { return 255 } depends() { echo "bash systemd systemd-initrd" return 0 } installkernel() { hostonly="" instmods -c squashfs loop overlay } install() { if ! type -P mksquashfs >/dev/null || ! type -P unsquashfs >/dev/null ; then derror "squash module requires squashfs-tools to be installed." return 1 fi inst_multiple kmod modprobe mount mkdir ln echo inst $moddir/setup-squash.sh /squash/setup-squash.sh inst $moddir/clear-squash.sh /squash/clear-squash.sh inst $moddir/init.sh /squash/init.sh inst "$moddir/squash-mnt-clear.service" "$systemdsystemunitdir/squash-mnt-clear.service" systemctl -q --root "$initdir" add-wants initrd-switch-root.target squash-mnt-clear.service }