This commit is contained in:
2025-08-30 19:30:45 +02:00
parent ae3fbda892
commit dc88a7a48b

View File

@@ -40,18 +40,18 @@ tasksel tasksel/first multiselect standard, ssh-server
# Individual additional packages to install # Individual additional packages to install
#d-i pkgsel/include string bash-completion git #d-i pkgsel/include string bash-completion git
# Include the QMADE post installation script from Github. # Include the Danos post installation script from Github.
d-i preseed/late_command string \ d-i preseed/late_command string \
apt-install grep wget curl bash; \ apt-install grep wget curl bash; \
USER_HOME=$(grep ":1000:" /target/etc/passwd | cut -d: -f6) && echo "[ -f ~/.first-login_RENAME ] \ USER_HOME=$(grep ":1000:" /target/etc/passwd | cut -d: -f6) && echo "[ -f ~/.first-login_RENAME ] \
&& curl -sfL https://raw.githubusercontent.com/ITmail-dk/qmade/main/install.sh | bash" >> /target/$USER_HOME/.profile \ && curl -sfL https://raw.githubusercontent.com/ITmail-dk/qmade/main/install.sh | bash" >> /target/$USER_HOME/.profile \
&& touch /target/$USER_HOME/.first-login && NEW_USERNAME=$(grep ":1000:" /target/etc/passwd | cut -d: -f1) \ && touch /target/$USER_HOME/.first-login && NEW_USERNAME=$(grep ":1000:" /target/etc/passwd | cut -d: -f1) \
&& chown $NEW_USERNAME:$NEW_USERNAME /target/$USER_HOME/.first-login; \ && chown $NEW_USERNAME:$NEW_USERNAME /target/$USER_HOME/.first-login; \
in-target wget -O /usr/local/bin/qmade-install https://raw.githubusercontent.com/ITmail-dk/qmade/main/install.sh; \ in-target wget -O /usr/local/bin/danos-install https://raw.githubusercontent.com/ITmail-dk/qmade/main/install.sh; \
in-target chmod +x /usr/local/bin/qmade-install; \ in-target chmod +x /usr/local/bin/danos-install; \
in-target wget -O /tmp/install-qmade.sh https://raw.githubusercontent.com/ITmail-dk/qmade/main/preseed-install-qmade.sh; \ in-target wget -O /tmp/install-danos.sh https://raw.githubusercontent.com/ITmail-dk/qmade/main/preseed-install-qmade.sh; \
in-target chmod +x /tmp/install-qmade.sh;\ in-target chmod +x /tmp/install-danos.sh;\
in-target /bin/sh /tmp/install-qmade.sh in-target /bin/sh /tmp/install-danos.sh
# --------------------------------------------------------------------------- # # --------------------------------------------------------------------------- #