From ecfadbcaa7640002447e5c97157254ecfb2e9860 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Fri, 2 Jun 2017 21:56:31 +0200 Subject: [PATCH] oem: Enforce a specific mirror that will always be set This is a hack, currently, which we need to ensure APT can fetch updates in case we were unable to connect to the network while installing. (if apt is not set up with sources, users will not know what to do at all and assume the system is broken). --- .../includes.chroot.oem/var/lib/pureos-oem/di-preseed.cfg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/includes.chroot.oem/var/lib/pureos-oem/di-preseed.cfg b/config/includes.chroot.oem/var/lib/pureos-oem/di-preseed.cfg index 4801e09..a3be492 100644 --- a/config/includes.chroot.oem/var/lib/pureos-oem/di-preseed.cfg +++ b/config/includes.chroot.oem/var/lib/pureos-oem/di-preseed.cfg @@ -77,8 +77,10 @@ d-i finish-install/reboot_in_progress note #grub-pc ucf/changeprompt string install the package maintainer's version -d-i preseed/late_command string cp /cdrom/purism/50_custom /target/etc/grub.d/50_custom;\ - chmod a+x /target/etc/grub.d/50_custom;\ - echo "GRUB_DISABLE_OS_PROBER=true" >> /target/etc/default/grub;\ +d-i preseed/late_command string cp /cdrom/purism/50_custom /target/etc/grub.d/50_custom; \ + chmod a+x /target/etc/grub.d/50_custom; \ + echo "GRUB_DISABLE_OS_PROBER=true" >> /target/etc/default/grub; \ + echo -e "#\n\ndeb http://repo.puri.sm/pureos/ green main" > /target/etc/apt/sources.list; \ + in-target sed -e '/boot/s/^#*/#/' -i /etc/fstab;\ in-target update-grub;