Skip to content

Commit

Permalink
Changed conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanSelen committed Dec 18, 2024
1 parent 91a1f73 commit 01fa0a7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ntos/configs/minimal/preseed.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ d-i grub-installer/only_debian boolean true

d-i preseed/late_command string \
in-target /bin/bash -c '\
echo "deb http://ftp.de.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backport.list \
apt-get update
apt-get install -y xfce4 xfce4-goodies xfce4-power-manager system-config-printer xfce4-panel-profiles xsane plymouth-themes dbus-x11 network-manager-gnome curl yad freerdp3-x11; \
apt-get autoremove -y; \
echo "NTOS-Setup" > /etc/hostname; \
sed -i "s/127.0.1.1.*/127.0.1.1 NTOS-Setup/" /etc/hosts; \
sed -i "/^deb cdrom:/s/^/#/" /etc/apt/sources.list; \
sed -i "s/quiet/quiet splash/" /etc/default/grub; \
sed -i "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/" /etc/default/grub; \
sed -i "s/^#autologin-user=/autologin-user=user/" /etc/lightdm/lightdm.conf; \
sed -i "s/^#\\(SystemMaxUse=\\).*/\\150M/" /etc/systemd/journald.conf; \
echo "deb http://ftp.de.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backport.list && \
apt-get update && \
apt-get install -y xfce4 xfce4-goodies xfce4-power-manager system-config-printer xfce4-panel-profiles xsane plymouth-themes dbus-x11 network-manager-gnome curl yad freerdp3-x11 && \
apt-get autoremove -y && \
echo "NTOS-Setup" > /etc/hostname && \
sed -i "s/127.0.1.1.*/127.0.1.1 NTOS-Setup/" /etc/hosts && \
sed -i "/^deb cdrom:/s/^/#/" /etc/apt/sources.list && \
sed -i "s/quiet/quiet splash/" /etc/default/grub && \
sed -i "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=1/" /etc/default/grub && \
sed -i "s/^#autologin-user=/autologin-user=user/" /etc/lightdm/lightdm.conf && \
sed -i "s/^#\\(SystemMaxUse=\\).*/\\150M/" /etc/systemd/journald.conf && \
grub-mkconfig -o /boot/grub/grub.cfg'

d-i finish-install/reboot_in_progress note

0 comments on commit 01fa0a7

Please sign in to comment.