Add new global storage value for stacked squashfses and adjust config.

ubuntu/plucky
Simon Quigley 2 months ago
parent 9c08301c64
commit d3c20f92d0

@ -238,6 +238,7 @@ void PackageSelectViewStep::onLeave()
return;
}
bool isStackedSquashfs = m_configurationMap.value("stacked_squashfs").toBool();
QVariantMap installationData = gs->value("installation_data").toMap();
QString installationMode = installationData.value("installation_mode").toString();
bool downloadUpdates = installationData.value("download_updates").toBool();
@ -264,13 +265,20 @@ void PackageSelectViewStep::onLeave()
globalData.insert("installation_mode", installationMode);
// Used by unpackfs on stacked squashfs systems
if (installationMode == "minimal") {
QVariantList minimalPackages = m_configurationMap.value("packages").toMap().value("minimal_remove_packages").toList();
QVariantList installerPackages = m_configurationMap.value("packages").toMap().value("installer_remove_packages").toList();
QVariantList combinedRemove = minimalPackages + installerPackages;
globalData.insert("packages_to_remove", combinedRemove);
}
else {
if (installationMode == "minimal") {
globalData.insert("unpack_regular", false);
if (!isStackedSquashfs) {
QVariantList minimalPackages = m_configurationMap.value("packages").toMap().value("minimal_remove_packages").toList();
QVariantList installerPackages = m_configurationMap.value("packages").toMap().value("installer_remove_packages").toList();
QVariantList combinedRemove = minimalPackages + installerPackages;
globalData.insert("packages_to_remove", combinedRemove);
}
} else {
globalData.insert("unpack_regular", true);
// For normal and full, store packages to install
QVariantList selectedPackagesList;
// Store the snaps that are already on the system by default
@ -317,8 +325,10 @@ void PackageSelectViewStep::onLeave()
}
globalData.insert("packages_to_install", selectedPackagesList);
QVariantList installerPackages = m_configurationMap.value("packages").toMap().value("installer_remove_packages").toList();
globalData.insert("packages_to_remove", installerPackages);
if (!isStackedSquashfs) {
QVariantList installerPackages = m_configurationMap.value("packages").toMap().value("installer_remove_packages").toList();
globalData.insert("packages_to_remove", installerPackages);
}
globalData.insert("present_snaps", presentSnapList);
}

@ -51,7 +51,7 @@ Calamares::JobResult PackageSelectProcess::runAptCommand(const QString& command,
commandHRPrefix = tr("Installing packages: ");
} else if (command.contains("full-upgrade")) {
commandHRPrefix = tr("Upgrading installed system: ");
} else if (command.contains("autoremove")) {
} else if (command.contains("remove")) {
commandHRPrefix = tr("Cleaning up packages: ");
}
@ -336,9 +336,6 @@ Calamares::JobResult PackageSelectProcess::exec()
autoremoveStart,
autoremoveEnd,
true);
if (!autoremoveResult) { // Using operator bool() to check for errors
return std::move(autoremoveResult); // Move to avoid copy
}
// Handle snap packages
if (installationMode != "minimal") {

6
debian/changelog vendored

@ -1,3 +1,9 @@
calamares-settings-ubuntu (1:25.04.8) UNRELEASED; urgency=medium
* Add new global storage value for stacked squashfses and adjust config.
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 20 Nov 2024 23:58:39 -0600
calamares-settings-ubuntu (1:25.04.7) plucky; urgency=medium
* Change oem user in Lubuntu raspi prep to user number 60999

4
debian/control vendored

@ -3,7 +3,7 @@ Section: devel
Priority: optional
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
Uploaders: Simon Quigley <tsimonq2@ubuntu.com>
Build-Depends: calamares (>= 3.3.9),
Build-Depends: calamares (>= 3.3.11),
cmake,
debhelper-compat (= 13),
extra-cmake-modules,
@ -63,7 +63,7 @@ Description: Ubuntu Unity Calamares Settings and Branding
Package: calamares-settings-ubuntu-common
Architecture: any
Depends: calamares (>= 3.3.9),
Depends: calamares (>= 3.3.11),
cryptsetup,
kdialog,
keyutils,

@ -1,4 +1,5 @@
---
stacked_squashfs: true
packages:
additional_packages:
- id: "element-desktop"
@ -17,32 +18,6 @@ packages:
name: "Krita"
description: "Graphics editor designed primarily for digital art and 2D animation."
snap: true
minimal_remove_packages:
- snapd
- snapd-installation-monitor
- vlc
- plasma-discover
- transmission-qt
- quassel
- 2048-qt
- featherpad
- noblenote
- kcalc
- qps
- zsync
- partitionmanager
- qapt-deb-installer
- picom
- qlipper
- qtpass
- "libreoffice*"
installer_remove_packages:
- "^live-*"
- calamares-settings-lubuntu
- calamares
- zram-config
- cifs-utils
- lubuntu-installer-prompt
regular_install_packages:
- language-pack-$LOCALE
- language-pack-gnome-$LOCALE

@ -1,5 +1,9 @@
---
unpack:
- source: "/cdrom/casper/filesystem.squashfs"
- source: "/cdrom/casper/minimal.squashfs"
sourcefs: "squashfs"
destination: ""
condition: true
- source: "/cdrom/casper/minimal.standard.squashfs"
sourcefs: "squashfs"
destination: ""
condition: "installation_data.unpack_regular"

Loading…
Cancel
Save