![预置失败并退出 2](https://linux22.com/image/77369/%E9%A2%84%E7%BD%AE%E5%A4%B1%E8%B4%A5%E5%B9%B6%E9%80%80%E5%87%BA%202.png)
Preseed 似乎不适合我。当执行 preseee/lat 命令时,它失败并退出 2。在尝试 6 次之后,如果能得到一些建议就太好了。
每次我到了2号出口。
这是预置失败的部分:
d-i preseed/late_command string \
apt-install mednafen mame wget git openssh-server; \
in-target wget --no-check-certificate http://build.ppsspp.org/builds/iOS-fat/ppssppbuildbot-org.ppsspp.ppsspp-1.1.1-ios-fat.deb -O /home/arcadia/ppsspp.deb; \
in target dpkg -i /home/arcadia/ppsspp.deb; \
in-target git config http.sslVerify "false" && git clone https://github.com/Prezto/Arcadia /opt/arcadia; \
in-target echo '#!/bin/bash' > /usr/bin/arcadia; \
in-target echo '/opt/arcadia/Arcadia' > /usr/bin/arcadia; \
in-target chmod a+x /usr/bin/arcadia; \
in-target git config http.sslVerify "false" && git clone https://github.com/Prezto/Arcadia-splash /lib/plymouth/themes/arcadia-splash; \
in-target update-alternatives --install /lib/plymouth/themes/default.plymouth default.plymouth /lib/plymouth/themes/arcadia-splash/arcadia-splash.plymouth 100; \
in-target update-alternatives --set default.plymouth /lib/plymouth/themes/arcadia-splash/arcadia-splash.plymouth; \
in-target cat /etc/systemd/system/getty.target.wants/[email protected] | sed -e "s/ExecStart=-\/sbin\/agetty --noclear \%I \$TERM/ExecStart=-\/sbin\/agetty --autologin arcadia --noclear \%I \$TERM/" > /etc/systemd/system/getty.target.wants/[email protected]; \
in-target mkdir -p /home/arcadia/.config/openbox; \
in-target echo 'hsetroot /lib/plymouth/themes/arcadia-splash/arcadia.png &' > /home/arcadia/.config/openbox/autostart; \
in-target echo 'arcadia &' >> /home/arcadia/.config/openbox/autostart; \
in-target echo 'openbox-session' > /home/arcadia/.xinitrc
有人看出这有什么问题吗?为什么这会失败?
更新:
经过几个小时后,我清楚地意识到最好将脚本复制到目标系统并在那里执行。
d-i preseed/late_command string cp -a /cdrom/preseed/post-install.sh /target/post-install.sh; in-target /bin/bash /post-install.sh
答案1
经过几个小时后,我清楚地意识到最好将脚本复制到目标系统并在那里执行。
d-i preseed/late_command string cp -a /cdrom/preseed/post-install.sh /target/post-install.sh; in-target /bin/bash /post-install.sh