Fix Lubuntu OEM first-time user setup

This commit is contained in:
Aaron Rainbolt 2026-03-16 12:39:03 -04:00
parent 08fe74c9df
commit 0342f11d9b
Signed by: arraybolt3
GPG Key ID: 39ADDC9EE23AEB08
4 changed files with 25 additions and 3 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
calamares-settings-ubuntu (1:26.04.7) resolute; urgency=medium
* Add Calamares to the installed system when installing Lubuntu in OEM mode
(LP: #2127123)
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Mon, 16 Mar 2026 12:32:10 -0400
calamares-settings-ubuntu (1:26.04.6) resolute; urgency=medium
* Don't crash the installer if the software database update fails (LP:

View File

@ -0,0 +1,12 @@
# Only used during OEM installation, to add Calamares to the installed system
# so that it can be used to provide first-time user setup.
---
dontChroot: false
timeout: 120
script:
- "mkdir /tmp/calamares-cdrom-sources"
- "cp /etc/apt/sources.list.d/cdrom.sources /tmp/calamares-cdrom-sources"
- "apt-get -o Dir::Etc::sourceparts=/tmp/calamares-cdrom-sources update"
- "apt install -y --no-upgrade -o Acquire::gpgv::Options::=--ignore-time-conflict calamares"
- "rm /tmp/calamares-cdrom-sources/cdrom.sources"
- "rmdir /tmp/calamares-cdrom-sources"

View File

@ -22,9 +22,6 @@ if kdialog --warningyesno "${msg}"; then
# Tweak branding to make it clear that OEM installation mode is active
sudo cp /etc/calamares/branding/lubuntu/welcome-oem.png /etc/calamares/branding/lubuntu/welcome.png;
# Don't remove Calamares from the installed system.
sudo sed -i '/- calamares$/d' /etc/calamares/modules/packages.conf;
# Enable oemid module, backslashes are needed for proper indentation
sudo sed -i "/- welcome$/a \ \ - oemid" /etc/calamares/settings.conf;
@ -34,6 +31,9 @@ if kdialog --warningyesno "${msg}"; then
# Fix OEM UID
sudo sed -i "/- shellprocess@oemprep$/a \ \ - shellprocess@fix-oem-uid" /etc/calamares/settings.conf;
# Add Calamares to the installed system
sudo sed -i "/- shellprocess@fix-oem-uid$/a \ \ - shellprocess@addcalamares" /etc/calamares/settings.conf;
# Force the user of an OEM configuration user
sudo cp /etc/calamares/modules/users.conf.oem /etc/calamares/modules/users.conf;

View File

@ -38,6 +38,9 @@ instances:
- id: rmcdrom
module: shellprocess
config: shellprocess_rmcdrom.conf
- id: addcalamares
module: shellprocess
config: shellprocess_addcalamares.conf
sequence:
- show: