mirror of
https://git.launchpad.net/~ubuntu-qt-code/+git/calamares-settings-ubuntu
synced 2025-06-16 04:01:37 +00:00
Add new global storage value for stacked squashfses and adjust config.
This commit is contained in:
parent
9c08301c64
commit
d3c20f92d0
@ -238,6 +238,7 @@ void PackageSelectViewStep::onLeave()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isStackedSquashfs = m_configurationMap.value("stacked_squashfs").toBool();
|
||||||
QVariantMap installationData = gs->value("installation_data").toMap();
|
QVariantMap installationData = gs->value("installation_data").toMap();
|
||||||
QString installationMode = installationData.value("installation_mode").toString();
|
QString installationMode = installationData.value("installation_mode").toString();
|
||||||
bool downloadUpdates = installationData.value("download_updates").toBool();
|
bool downloadUpdates = installationData.value("download_updates").toBool();
|
||||||
@ -264,13 +265,20 @@ void PackageSelectViewStep::onLeave()
|
|||||||
|
|
||||||
globalData.insert("installation_mode", installationMode);
|
globalData.insert("installation_mode", installationMode);
|
||||||
|
|
||||||
|
// Used by unpackfs on stacked squashfs systems
|
||||||
if (installationMode == "minimal") {
|
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
|
// For normal and full, store packages to install
|
||||||
QVariantList selectedPackagesList;
|
QVariantList selectedPackagesList;
|
||||||
// Store the snaps that are already on the system by default
|
// Store the snaps that are already on the system by default
|
||||||
@ -317,8 +325,10 @@ void PackageSelectViewStep::onLeave()
|
|||||||
}
|
}
|
||||||
|
|
||||||
globalData.insert("packages_to_install", selectedPackagesList);
|
globalData.insert("packages_to_install", selectedPackagesList);
|
||||||
QVariantList installerPackages = m_configurationMap.value("packages").toMap().value("installer_remove_packages").toList();
|
if (!isStackedSquashfs) {
|
||||||
globalData.insert("packages_to_remove", installerPackages);
|
QVariantList installerPackages = m_configurationMap.value("packages").toMap().value("installer_remove_packages").toList();
|
||||||
|
globalData.insert("packages_to_remove", installerPackages);
|
||||||
|
}
|
||||||
globalData.insert("present_snaps", presentSnapList);
|
globalData.insert("present_snaps", presentSnapList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ Calamares::JobResult PackageSelectProcess::runAptCommand(const QString& command,
|
|||||||
commandHRPrefix = tr("Installing packages: ");
|
commandHRPrefix = tr("Installing packages: ");
|
||||||
} else if (command.contains("full-upgrade")) {
|
} else if (command.contains("full-upgrade")) {
|
||||||
commandHRPrefix = tr("Upgrading installed system: ");
|
commandHRPrefix = tr("Upgrading installed system: ");
|
||||||
} else if (command.contains("autoremove")) {
|
} else if (command.contains("remove")) {
|
||||||
commandHRPrefix = tr("Cleaning up packages: ");
|
commandHRPrefix = tr("Cleaning up packages: ");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,9 +336,6 @@ Calamares::JobResult PackageSelectProcess::exec()
|
|||||||
autoremoveStart,
|
autoremoveStart,
|
||||||
autoremoveEnd,
|
autoremoveEnd,
|
||||||
true);
|
true);
|
||||||
if (!autoremoveResult) { // Using operator bool() to check for errors
|
|
||||||
return std::move(autoremoveResult); // Move to avoid copy
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle snap packages
|
// Handle snap packages
|
||||||
if (installationMode != "minimal") {
|
if (installationMode != "minimal") {
|
||||||
|
6
debian/changelog
vendored
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
|
calamares-settings-ubuntu (1:25.04.7) plucky; urgency=medium
|
||||||
|
|
||||||
* Change oem user in Lubuntu raspi prep to user number 60999
|
* Change oem user in Lubuntu raspi prep to user number 60999
|
||||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -3,7 +3,7 @@ Section: devel
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
|
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
|
||||||
Uploaders: Simon Quigley <tsimonq2@ubuntu.com>
|
Uploaders: Simon Quigley <tsimonq2@ubuntu.com>
|
||||||
Build-Depends: calamares (>= 3.3.9),
|
Build-Depends: calamares (>= 3.3.11),
|
||||||
cmake,
|
cmake,
|
||||||
debhelper-compat (= 13),
|
debhelper-compat (= 13),
|
||||||
extra-cmake-modules,
|
extra-cmake-modules,
|
||||||
@ -63,7 +63,7 @@ Description: Ubuntu Unity Calamares Settings and Branding
|
|||||||
|
|
||||||
Package: calamares-settings-ubuntu-common
|
Package: calamares-settings-ubuntu-common
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: calamares (>= 3.3.9),
|
Depends: calamares (>= 3.3.11),
|
||||||
cryptsetup,
|
cryptsetup,
|
||||||
kdialog,
|
kdialog,
|
||||||
keyutils,
|
keyutils,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
stacked_squashfs: true
|
||||||
packages:
|
packages:
|
||||||
additional_packages:
|
additional_packages:
|
||||||
- id: "element-desktop"
|
- id: "element-desktop"
|
||||||
@ -17,32 +18,6 @@ packages:
|
|||||||
name: "Krita"
|
name: "Krita"
|
||||||
description: "Graphics editor designed primarily for digital art and 2D animation."
|
description: "Graphics editor designed primarily for digital art and 2D animation."
|
||||||
snap: true
|
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:
|
regular_install_packages:
|
||||||
- language-pack-$LOCALE
|
- language-pack-$LOCALE
|
||||||
- language-pack-gnome-$LOCALE
|
- language-pack-gnome-$LOCALE
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
---
|
|
||||||
unpack:
|
unpack:
|
||||||
- source: "/cdrom/casper/filesystem.squashfs"
|
- source: "/cdrom/casper/minimal.squashfs"
|
||||||
sourcefs: "squashfs"
|
sourcefs: "squashfs"
|
||||||
destination: ""
|
destination: ""
|
||||||
|
condition: true
|
||||||
|
- source: "/cdrom/casper/minimal.standard.squashfs"
|
||||||
|
sourcefs: "squashfs"
|
||||||
|
destination: ""
|
||||||
|
condition: "installation_data.unpack_regular"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user