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
This commit is contained in:
Greg Hellings
2025-08-18 12:35:13 -05:00
parent 260a2711eb
commit 8ac704a100
3 changed files with 13 additions and 9 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ boot_command = [
"automatic-ubiquity ", "automatic-ubiquity ",
#"only-ubiquity ", #"only-ubiquity ",
"url=http://{{.HTTPIP}}:{{ .HTTPPort }}/preseed.cfg ", "url=http://{{.HTTPIP}}:{{ .HTTPPort }}/preseed.cfg ",
"video=VGA-1:1600x1200 ",
"<f10>", "<f10>",
] ]
http_directory = "distros/mint/22/http/" http_directory = "distros/mint/22/http/"
vbox_os_type = "Debian12_64" vbox_os_type = "Ubuntu24_LTS_64"
+3
View File
@@ -10,6 +10,9 @@ UseDNS no
PubkeyAcceptedKeyTypes +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa
EOF EOF
apt update
apt upgrade -y
# Clean up after ourselves # Clean up after ourselves
apt-get clean apt-get clean
+8 -8
View File
@@ -70,7 +70,7 @@ ubiquity ubiquity/use_nonfree boolean false
# Package selection # Package selection
tasksel tasksel/first multiselect 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 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 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant; \
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \ echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \
chmod 440 /target/etc/sudoers.d/vagrant; \ chmod 440 /target/etc/sudoers.d/vagrant; \
sed -i -e 's/ens3/ens5/g' /target/etc/network/interfaces; \ sed -i -e 's/ens3/ens5/g' /target/etc/network/interfaces || true; \
IF=$(ip -br a|grep DOWN|head -1|awk '{print $1}'); \ IF=$(ip -br a|grep DOWN|head -1|awk '{print $1}') || true; \
ip link set up dev $IF; \ ip link set up dev $IF || true; \
dhclient $IF; \ dhclient $IF || true; \
in-target apt-get update; \ in-target apt update; \
in-target apt-get upgrade -y; \ in-target apt upgrade; \
in-target apt-get install -y openssh-server in-target apt install -y openssh-server