Index | Thread | Search

From:
"Alexander A. Klimov" <a@kli.mov>
Subject:
install.sub: don't require bsd(.sp) on multi-core machine
To:
tech@openbsd.org
Date:
Wed, 1 May 2024 17:10:55 +0200

Download raw body.

Thread
Hello everyone!

SANESETS= specifies only the absolutely necessary sets.
And "bsd" isn't necessary on a multi-core machine,
as it gets replaced with bsd.mp anyway.

With this diff the installer doesn't ask whether I'm "*SURE*".
Especially useful with sysupgrade -n; rm /home/_sysupgrade/...; reboot
I mean, there's only bsd.mp in /home/_sysupgrade, the installer asks (who?)
whether I'm "*SURE*" and the auto-response file in bsd.upgrade answers
the default "no". Not sure. And... then what?

Ok?


--- distrib/miniroot/install.sub
+++ distrib/miniroot/install.sub
@@ -3663,7 +3663,7 @@ SANESETS="${MDSANESETS:-bsd} base${VERSION}.tgz"
  if ((NCPU > 1)); then
         DEFAULTSETS="${MDSETS:-bsd bsd.mp bsd.rd} $SETS"
         ALLSETS="${MDSETS:-bsd bsd.mp bsd.rd} $SETS site$VERSION.tgz"
-       SANESETS="${MDSANESETS:-bsd bsd.mp} base${VERSION}.tgz"
+       SANESETS="${MDSANESETS:-bsd.mp} base${VERSION}.tgz"
  fi

  # Prepare COLUMNS sanely.