mirror of
https://git.launchpad.net/~ubuntu-qt-code/+git/calamares-settings-ubuntu
synced 2026-03-17 03:57:40 +00:00
Fix Lubuntu OEM first-time user setup
This commit is contained in:
parent
08fe74c9df
commit
0342f11d9b
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -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:
|
||||
|
||||
12
lubuntu/modules/shellprocess_addcalamares.conf
Normal file
12
lubuntu/modules/shellprocess_addcalamares.conf
Normal 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"
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -38,6 +38,9 @@ instances:
|
||||
- id: rmcdrom
|
||||
module: shellprocess
|
||||
config: shellprocess_rmcdrom.conf
|
||||
- id: addcalamares
|
||||
module: shellprocess
|
||||
config: shellprocess_addcalamares.conf
|
||||
|
||||
sequence:
|
||||
- show:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user