Ubuntu 17.04 Приветствие Разрешение дисплея LightDM

Невозможно очистить o удалить пакет в сценарии настройки preseed, но вы можете использовать эту команду ....

di preseed / late_command

This command is run just before the install finishes, but when there is
still a usable /target directory. You can chroot to /target and use it
directly, or use the apt-install and in-target commands to easily install
packages and run commands in the target system.
"in-target" means: chroot /target
d-i preseed/late_command string [in-target] foo
[d3 ]:

d-i preseed/late_command string \
            in-target apt-get remove packagename

вы также можете запустить скрипт:

d-i preseed/late_command string \
        in-target wget http://........./postinst.sh -O /root/postinst.sh; \
        in-target /bin/bash /root/postinst.sh

или установить группу файлов DEB:

d-i preseed/late_command               string \
    for deb in /hd-media/*.deb; do cp $deb /target/tmp; \
    chroot /target dpkg -i /tmp/$(basename $deb); done
1
задан 22 July 2017 в 00:36

0 ответов

Другие вопросы по тегам:

Похожие вопросы: