From 8ac704a100409713cb7b9ef3acf32891674008a1 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 18 Aug 2025 12:35:13 -0500 Subject: [PATCH] Hopefully fix Mint 22 install problems Mint 22 install was hanging on Virtualbox because it was not installing openssh-server at the end of the run. I do not know whether the `|| true` lines fixed this, or if it was the `d-i pkgsel/include` line getting fixed, but the result is that it now builds and installs for Virtualbox --- distros/mint/22/amd64.pkrvars.hcl | 3 ++- distros/mint/22/finalize.sh | 3 +++ distros/mint/22/http/preseed.cfg | 16 ++++++++-------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/distros/mint/22/amd64.pkrvars.hcl b/distros/mint/22/amd64.pkrvars.hcl index 3a5e1a5..36317ba 100644 --- a/distros/mint/22/amd64.pkrvars.hcl +++ b/distros/mint/22/amd64.pkrvars.hcl @@ -11,7 +11,8 @@ boot_command = [ "automatic-ubiquity ", #"only-ubiquity ", "url=http://{{.HTTPIP}}:{{ .HTTPPort }}/preseed.cfg ", + "video=VGA-1:1600x1200 ", "", ] http_directory = "distros/mint/22/http/" -vbox_os_type = "Debian12_64" +vbox_os_type = "Ubuntu24_LTS_64" diff --git a/distros/mint/22/finalize.sh b/distros/mint/22/finalize.sh index 9da84aa..8bdb3c0 100644 --- a/distros/mint/22/finalize.sh +++ b/distros/mint/22/finalize.sh @@ -10,6 +10,9 @@ UseDNS no PubkeyAcceptedKeyTypes +ssh-rsa EOF +apt update +apt upgrade -y + # Clean up after ourselves apt-get clean diff --git a/distros/mint/22/http/preseed.cfg b/distros/mint/22/http/preseed.cfg index d6a3b2a..7990043 100644 --- a/distros/mint/22/http/preseed.cfg +++ b/distros/mint/22/http/preseed.cfg @@ -70,7 +70,7 @@ ubiquity ubiquity/use_nonfree boolean false # Package selection tasksel tasksel/first multiselect -#d-i pkgsel/include string curl openssh-server sudo python3 network-manager +d-i pkgsel/include string openssh-server popularity-contest popularity-contest/participate boolean false @@ -83,10 +83,10 @@ ubiquity ubiquity/success_command string \ echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant; \ echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \ chmod 440 /target/etc/sudoers.d/vagrant; \ - sed -i -e 's/ens3/ens5/g' /target/etc/network/interfaces; \ - IF=$(ip -br a|grep DOWN|head -1|awk '{print $1}'); \ - ip link set up dev $IF; \ - dhclient $IF; \ - in-target apt-get update; \ - in-target apt-get upgrade -y; \ - in-target apt-get install -y openssh-server + sed -i -e 's/ens3/ens5/g' /target/etc/network/interfaces || true; \ + IF=$(ip -br a|grep DOWN|head -1|awk '{print $1}') || true; \ + ip link set up dev $IF || true; \ + dhclient $IF || true; \ + in-target apt update; \ + in-target apt upgrade; \ + in-target apt install -y openssh-server