Compare commits

..

1 Commits

Author SHA1 Message Date
Jonathan Carter 105965bcdd Merge 2020-08-02 18:56:59 +02:00
34 changed files with 208 additions and 471 deletions
-91
View File
@@ -1,94 +1,3 @@
[ 13.0.6 ]
* Merge MR!3
- Add missing mountpoints
* Merge MR!2
- Install more generic grub-efi package to allow installation on
non-amd64 architectures
* Remove space_cache from fstab module (space_cache=v2 is now default)
and also autodefrag which isn't useful on modern storage
[ 13.0.5 ]
* Add pesky missing delimiter for Calamares desktop icon setup
(thanks Roland Clobus, #1037299)
[ 13.0.4 ]
* Update config in mount module so that /dev is properly mounted
in target
[ 13.0.3 ]
* Update branding elements for Calamares 3.3 series
* Fix desktop file launcher
* Set installEFIFallback: true
* Don't allow empty passwords
[ 13.0.2 ]
* Fix desktop icon path in add-calamares-desktop-icon
[ 13.0.1 ]
* Initial release for trixie
- Update sources.list writer and media sources
* Update copyright years
* Update installer artwork (egg theme)
* Rename launchers (partial fix towards #1021156)
* Mark desktop launchers as trusted for xfce/gnome (#1037299)
[ 12.0.9 ]
* Fix typos in version numbers for last two changelog entries
* Install cryptsetup-initramfs, cryptsetup and keyutils (only) when needed
(required due to these packages only now existing on package pool,
not on the squashfs filesystem)
[ 12.0.8 ]
* Do grub work within the chroot
[ 12.0.7 ]
* Enable os-prober /after/ grub has been installed.
[ 12.0.6 ]
* Enable os-prober
[ 12.0.5 ]
* Update sources.list to include non-free-firmware and backports
[ 12.0.4 ]
* Update artwork for Debian 12 (emerald theme)
* Make installer slide translatable
[ 12.0.3 ]
* Work around hidpi issue (#992162)
[ 12.0.2 ]
* Fix dpkg-unsafe-io and dpkg-unsafe-io-undo names
* Update the sources-media script to use bookworm
[ 12.0.1 ]
* Initial branding description and sources.list changes for bookworm
* Add dpkg-unsafe-io module to speed up post-installation
(Debian bug: #984794)
[ 11.0.3 ]
* Update settings.conf with changes from recent releases
* Update sources.list to include updates security path
(Debian bug: #969930)
* Store host entropy in urandom and systemd location
(Debian bug: #941301)
[ 11.0.2 ]
* Use xdg-user-dir to specify Desktop path
+1 -1
View File
@@ -1,6 +1,6 @@
ISC License
Copyright (c) 2016-2023, Jonathan Carter <jcc@debian.org>
Copyright (c) 2016-2020, Jonathan Carter <jcc@debian.org>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+8 -16
View File
@@ -13,23 +13,15 @@ mkdir -p $DESKTOP
# Among the Debian desktop environments, LXDE is the only one
# that behaves completely different.
if [ -f /usr/bin/lxsession ]; then
echo "[Desktop Entry]" > $DESKTOP/calamares-install-debian.desktop
echo "Type=Link" >> $DESKTOP/calamares-install-debian.desktop
echo "Name=Install Debian" >> $DESKTOP/calamares-install-debian.desktop
echo "Icon=install-debian" >> $DESKTOP/calamares-install-debian.desktop
echo "URL=/usr/share/applications/calamares-install-debian.desktop" \
>> $DESKTOP/calamares-install-debian.desktop
echo "[Desktop Entry]" > $DESKTOP/install-debian.desktop
echo "Type=Link" >> $DESKTOP/install-debian.desktop
echo "Name=Install Debian" >> $DESKTOP/install-debian.desktop
echo "Icon=install-debian" >> $DESKTOP/install-debian.desktop
echo "URL=/usr/share/applications/install-debian.desktop" \
>> $DESKTOP/install-debian.desktop
else
cp /usr/share/applications/calamares-install-debian.desktop $DESKTOP
cp /usr/share/applications/install-debian.desktop $DESKTOP
# Xfce needs this executable otherwise it complains, everything
# else doesn't seem to care either way.
chmod +x $DESKTOP/calamares-install-debian.desktop
chmod +x $DESKTOP/install-debian.desktop
fi
# Set desktop launcher as trusted under gnome/xfce (See: #1037299)
gio set --type=string ~/Desktop/calamares-install-debian.desktop \
metadata::trusted true
gio set --type=string ~/Desktop/calamares-install-debian.desktop \
metadata::xfce-exe-checksum \
"$(sha256sum ~/Desktop/calamares-install-debian.desktop | cut -f1 -d' ')"
touch ~/Desktop/calamares-install-debian.desktop
-26
View File
@@ -1,26 +0,0 @@
#!/bin/sh
###
# Wrapper for running calamares on Debian live media
###
# Stale file left behind by live-build that messes with partitioning
sudo mv /etc/fstab /etc/fstab.orig.calamares
# Allow Calamares to scale the window for hidpi displays
# This is fixed in the Calamares 3.3.0 series, so we can remove this
# once we switch to that
# Upstream commit that will make this obsolete:
# https://github.com/calamares/calamares/commit/e9f011b686a0982fb7828e8ac02a8e0784d3b11f
# Upstream bug:
# https://github.com/calamares/calamares/issues/1945
# Debian bug:
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992162
export QT_AUTO_SCREEN_SCALE_FACTOR=1
# Access control to run calamares as root for xwayland
xhost +si:localuser:root
pkexec calamares
xhost -si:localuser:root
# Restore stale fstab, for what it's worth
sudo mv /etc/fstab.orig.calamares /etc/fstab
@@ -1,6 +0,0 @@
---
type: "job"
name: "dpkg-unsafe-io-undo"
interface: "process"
command: "/usr/sbin/dpkg-unsafe-io -u"
timeout: 600
@@ -1,6 +0,0 @@
---
type: "job"
name: "dpkg-unsafe-io"
interface: "process"
command: "/usr/sbin/dpkg-unsafe-io"
timeout: 600
+9 -23
View File
@@ -1,41 +1,27 @@
---
componentName: debian
welcomeStyleCalamares: true
welcomeExpandingLogo: true
windowExpanding: normal
windowSize: 800px,580px
windowPlacement: center
strings:
productName: Debian GNU/Linux
shortProductName: Debian
version: 13
shortVersion: 13
versionedName: Debian 13
shortVersionedName: Debian 13
shortProductName: Debian testing
version: 11 (bullseye)
shortVersion: 11
versionedName: Debian 11 (bullseye)
shortVersionedName: Debian 11
bootloaderEntryName: Debian
productUrl: https://debian.org
supportUrl: https://www.debian.org/support
knownIssuesUrl: https://bugs.debian.org
releaseNotesUrl: https://www.debian.org/releases/bookworm/releasenotes
donateUrl: https://www.debian.org
sidebar: widget
navigation: widget
releaseNotesUrl: https://www.debian.org/releases/bullseye/releasenotes
images:
# productBanner: "/usr/share/desktop-base/emerald-theme/grub/grub-16x9.png"
productLogo: "debian-logo.png"
productIcon: "debian-logo.png"
productWelcome: "welcome.png"
# productWallpaper: ""
slideshow: "show.qml"
style:
SidebarBackground: "#010027"
SidebarText: "#FFFFFF"
SidebarTextCurrent: "#fbfbfb"
SidebarBackgroundCurrent: "#017877"
slideshowAPI: 2
sidebarBackground: "#2c3133"
sidebarText: "#FFFFFF"
sidebarTextSelect: "#4d7079"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 46 KiB

+2 -2
View File
@@ -40,8 +40,8 @@ Presentation
Text {
anchors.horizontalCenter: background1.horizontalCenter
anchors.top: background1.bottom
text: qsTr("Welcome to Debian GNU/Linux.<br/>"+
"The rest of the installation is automated and should complete in a few minutes.")
text: "Welcome to Debian GNU/Linux.<br/>"+
"The rest of the installation is automated and should complete in a few minutes."
wrapMode: Text.WordWrap
width: 600
horizontalAlignment: Text.Center
Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 170 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 164 KiB

+1 -1
View File
@@ -51,4 +51,4 @@ efiBootMgr: "efibootmgr"
# seems to be the only one). If you set this to false, take care
# to add another module to optionally install the fallback on those
# boards that need it.
installEFIFallback: true
installEFIFallback: false
+1 -1
View File
@@ -1,7 +1,7 @@
---
mountOptions:
default: defaults,noatime
btrfs: defaults,noatime
btrfs: defaults,noatime,space_cache,autodefrag
ssdExtraMountOptions:
ext4: discard
jfs: discard
-7
View File
@@ -6,10 +6,3 @@ dbus: true
# Whether /var/lib/dbus/machine-id should be a symlink to /etc/machine-id
# (ignored if dbus is false, or if there is no /etc/machine-id to point to).
symlink: true
# Whether to copy entropy from the host
entropy-copy: true
# Which files to write (paths in the target)
entropy-files:
- /var/lib/urandom/random-seed
- /var/lib/systemd/random-seed
+10 -18
View File
@@ -1,22 +1,17 @@
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
#
# Mount filesystems in the target (generally, before treating the
# target as a usable chroot / "live" system). Filesystems are
# automatically mounted from the partitioning module. Filesystems
# listed here are **extra**. The filesystems listed in *extraMounts*
# are mounted in all target systems.
# are mounted in all target systems. The filesystems listed in
# *extraMountsEfi* are mounted in the target system **only** if
# the host machine uses UEFI.
---
# Extra filesystems to mount. The key's value is a list of entries; each
# entry has five keys:
# entry has four keys:
# - device The device node to mount
# - fs (optional) The filesystem type to use
# - fs The filesystem type to use
# - mountPoint Where to mount the filesystem
# - options (optional) An array of options to pass to mount
# - efi (optional) A boolean that when true is only mounted for UEFI installs
#
# The device is not mounted if the mountPoint is unset or if the fs is
# set to unformatted.
# - options (optional) Extra options to pass to mount(8)
#
extraMounts:
- device: proc
@@ -27,18 +22,15 @@ extraMounts:
mountPoint: /sys
- device: /dev
mountPoint: /dev
options: [ bind ]
options: bind
- device: tmpfs
fs: tmpfs
mountPoint: /run
- device: /run/udev
mountPoint: /run/udev
options: [ bind ]
options: bind
extraMountsEfi:
- device: efivarfs
fs: efivarfs
mountPoint: /sys/firmware/efi/efivars
efi: true
- device: /dev/pts
mountPoint: /dev/pts
options: [ bind ]
# /dev/pts is required by apt for storing the logs
-9
View File
@@ -15,12 +15,3 @@ defaultGroups:
autologinGroup: autologin
sudoersGroup: sudo
setRootPassword: false
passwordRequirements:
nonempty: true
minLength: -1 # Password at least this many characters
maxLength: -1 # Password at most this many characters
libpwquality:
- minlen=0
- minclass=0
+1 -36
View File
@@ -5,41 +5,8 @@
# "local" is LIBDIR/calamares/modules with settings in SHARE/calamares/modules
modules-search: [ local, /usr/lib/calamares/modules ]
# If this is set to true, Calamares refers to itself as a "setup program"
# rather than an "installer". Defaults to the value of dont-chroot, but
# Calamares will complain if this is not explicitly set.
oem-setup: false
# If this is set to true, the "Cancel" button will be disabled entirely.
# The button is also hidden from view.
#
# This can be useful if when e.g. Calamares is used as a post-install
# configuration tool and you require the user to go through all the
# configuration steps.
#
# Default is false, but Calamares will complain if this is not explicitly set.
#
# YAML: boolean.
disable-cancel: false
# If this is set to true, the "Cancel" button will be disabled once
# you start the 'Installation', meaning there won't be a way to cancel
# the Installation until it has finished or installation has failed.
#
# Default is false, but Calamares will complain if this is not explicitly set.
#
# YAML: boolean.
disable-cancel-during-exec: false
# If this is set to true, then once the end of the sequence has
# been reached, the quit (done) button is clicked automatically
# and Calamares will close. Default is false: the user will see
# that the end of installation has been reached, and that things are ok.
#
#
quit-at-end: false
sequence:
# Phase 1 - prepare.
# View modules are shown as UI pages, jobs from job modules
# are executed immediately in the background.
@@ -62,7 +29,6 @@ sequence:
- partition
- mount
- unpackfs
- dpkg-unsafe-io
- sources-media
- machineid
- fstab
@@ -82,7 +48,6 @@ sequence:
- plymouthcfg
- initramfscfg
- initramfs
- dpkg-unsafe-io-undo
- sources-media-unmount
- sources-final
- umount
+5
View File
@@ -0,0 +1,5 @@
.debhelper/
calamares-settings-debian.substvars
calamares-settings-debian/
debhelper-build-stamp
files
+12 -182
View File
@@ -1,192 +1,22 @@
calamares-settings-debian (13.0.6-1) unstable; urgency=medium
calamares-settings-debian (10.0.20-1+deb10u3) buster; urgency=medium
* New upstream release
- Mount efivarfs when needed (Closes: #1051607)
* Use xdg-user-dir to specify Desktop directory
(Closes: #959541)
-- Jonathan Carter <jcc@debian.org> Fri, 21 Jun 2024 18:13:26 +0200
-- Jonathan Carter <jcc@debian.org> Wed, 15 Jul 2020 18:15:49 +0200
calamares-settings-debian (13.0.5-2) unstable; urgency=medium
calamares-settings-debian (10.0.20-1+deb10u2) buster; urgency=medium
* Update debian/watch to work with new GitLab release
* Fix type in previous entry (s/desk/disk)
* Enable displaymanager module, fixing autologin options
(Closes: #934503, #934504)
-- Jonathan Carter <jcc@debian.org> Wed, 19 Jun 2024 11:01:19 +0200
-- Jonathan Carter <jcc@debian.org> Wed, 15 Jul 2020 17:15:11 +0200
calamares-settings-debian (13.0.5-1) unstable; urgency=medium
calamares-settings-debian (10.0.20-1+deb10u1) buster; urgency=medium
* New upstream release
- Fix delimiter in desktop icon script (Closes: #1037299)
-- Jonathan Carter <jcc@debian.org> Sun, 11 Feb 2024 14:48:39 +0200
calamares-settings-debian (13.0.4-1) unstable; urgency=medium
* New upstream release
- Fix crash where /dev isn't mounted
-- Jonathan Carter <jcc@debian.org> Mon, 28 Aug 2023 19:17:29 +0200
calamares-settings-debian (13.0.3-1) unstable; urgency=medium
* New upstream release
- Do not allow empty password (Closes: #1050291)
-- Jonathan Carter <jcc@debian.org> Fri, 25 Aug 2023 21:51:02 +0200
calamares-settings-debian (13.0.2-1) unstable; urgency=medium
* New upstream release
- Fix desktop script path
-- Jonathan Carter <jcc@debian.org> Thu, 24 Aug 2023 17:32:33 +0200
calamares-settings-debian (13.0.1-1) unstable; urgency=medium
* New upstream release
- Initial trixie support
* Add dependency: libglib2.0-bin
- Plus upstream fixes for desktop launcher (Closes: #1037299)
* Update standards version to 4.6.2
* Update copyright years
-- Jonathan Carter <jcc@debian.org> Thu, 24 Aug 2023 16:49:49 +0200
calamares-settings-debian (12.0.9-1) unstable; urgency=medium
* New upstream release
- Deal with changes in how luks tools are installed from live media
-- Jonathan Carter <jcc@debian.org> Thu, 04 May 2023 20:47:17 +0200
calamares-settings-debian (12.0.8-1) unstable; urgency=medium
* New upstream release
- Make grub changes in the correct place (within the chroot)
-- Jonathan Carter <jcc@debian.org> Wed, 26 Apr 2023 14:25:34 +0200
calamares-settings-debian (12.0.7-1) unstable; urgency=medium
* New upstream release
- Re-enable os-prober
-- Jonathan Carter <jcc@debian.org> Wed, 26 Apr 2023 13:43:01 +0200
calamares-settings-debian (12.0.5-2) unstable; urgency=medium
* Depend on pkexec (Closes: #1033930)
-- Jonathan Carter <jcc@debian.org> Tue, 04 Apr 2023 09:51:03 +0200
calamares-settings-debian (12.0.5-1) unstable; urgency=medium
* New upstream release
- Update sources.list to include backports and non-free-firmware
-- Jonathan Carter <jcc@debian.org> Mon, 06 Mar 2023 19:24:55 +0200
calamares-settings-debian (12.0.4-1) unstable; urgency=medium
* New upstream release
- Bookworm artwork
- Make installer slide translatable
-- Jonathan Carter <jcc@debian.org> Mon, 06 Mar 2023 12:33:33 +0200
calamares-settings-debian (12.0.3-1) unstable; urgency=medium
* New upstream release
(work arounds hidpi issue, Closes: #992162)
-- Jonathan Carter <jcc@debian.org> Tue, 02 Aug 2022 09:35:26 +0200
calamares-settings-debian (12.0.2-1) unstable; urgency=medium
* New upstream release
-- Jonathan Carter <jcc@debian.org> Thu, 19 May 2022 14:51:29 +0200
calamares-settings-debian (12.0.1-1) unstable; urgency=medium
[ Debian Janitor ]
* Set upstream metadata fields: Repository, Repository-Browse.
* Update standards version to 4.6.0, no changes needed.
[ Jonathan Carter ]
* New release
- Use force-unsafe-io to speed up dpkg actions (Closes: #984794)
-- Jonathan Carter <jcc@debian.org> Mon, 09 May 2022 13:37:12 +0200
calamares-settings-debian (11.0.5-2) unstable; urgency=medium
* Add supplimental information to previous changelog entry
-- Jonathan Carter <jcc@debian.org> Mon, 26 Jul 2021 10:27:12 +0200
calamares-settings-debian (11.0.5-1) unstable; urgency=medium
* New upstream release
- Corrects the apt sources for security updates (Closes: #991474)
-- Jonathan Carter <jcc@debian.org> Sun, 25 Jul 2021 14:10:24 +0200
calamares-settings-debian (11.0.4-1) unstable; urgency=medium
* New upstream release
-- Jonathan Carter <jcc@debian.org> Wed, 11 Nov 2020 14:54:50 +0200
calamares-settings-debian (11.0.3-1) unstable; urgency=medium
* New upstream release
(Closes: #969930, #941301)
-- Jonathan Carter <jcc@debian.org> Sun, 18 Oct 2020 19:48:10 +0200
calamares-settings-debian (11.0.2-1) unstable; urgency=medium
* New upstream release
(Closes: #934503, #934504, #959541)
* Update standards version to 4.5.0
* Upgrade to debhelper-compat 13
* Declare Rules-Requires-Root: no
* Update copyright years
-- Jonathan Carter <jcc@debian.org> Wed, 15 Jul 2020 18:39:57 +0200
calamares-settings-debian (11.0.1-1) unstable; urgency=medium
* New upstream release
-- Jonathan Carter <jcc@debian.org> Wed, 25 Sep 2019 10:36:54 +0000
calamares-settings-debian (10.0.25-2) unstable; urgency=medium
* Initial source-only upload
* Update standards version to 4.4.0
-- Jonathan Carter <jcc@debian.org> Mon, 05 Aug 2019 21:30:20 +0200
calamares-settings-debian (10.0.25-1) unstable; urgency=medium
* New upstream release
- Refine fix for initramfs permissions, only apply
when encryption is enabled
-- Jonathan Carter <jcc@debian.org> Fri, 05 Jul 2019 17:37:33 +0200
calamares-settings-debian (10.0.24-1) unstable; urgency=medium
* New upstream release
- Fix path in previous CVE bug fix
-- Jonathan Carter <jcc@debian.org> Wed, 03 Jul 2019 13:29:07 +0000
calamares-settings-debian (10.0.23-1) unstable; urgency=medium
* New upstream release
- Fixes permissions for initramfs image (CVE-2019-13179)
(Closes: #931373)
* Fix permissions for initramfs image when full-disk encryption
is enabled. (CVE-2019-13179) (Closes: #931373)
-- Jonathan Carter <jcc@debian.org> Wed, 03 Jul 2019 13:05:47 +0000
+1 -3
View File
@@ -3,7 +3,7 @@ Section: utils
Priority: optional
Maintainer: Jonathan Carter <jcc@debian.org>
Build-Depends: debhelper-compat (= 13), libglib2.0-bin
Standards-Version: 4.6.2
Standards-Version: 4.5.0
Rules-Requires-Root: no
Homepage: https://salsa.debian.org/live-team/calamares-settings-debian
Vcs-Git: https://salsa.debian.org/live-team/calamares-settings-debian-packaging.git
@@ -13,9 +13,7 @@ Package: calamares-settings-debian
Architecture: all
Depends: calamares,
cryptsetup,
libglib2.0-bin,
keyutils,
pkexec,
qml-module-qtquick-window2,
qml-module-qtquick2,
${misc:Depends}
+2 -2
View File
@@ -3,7 +3,7 @@ Upstream-Name: calamares-settings-debian
Source: https://gitlab.com/highvoltage/calamares-settings-debian
Files: *
Copyright: 2016-2023, Jonathan Carter <jcc@debian.org>
Copyright: 2016-2020, Jonathan Carter <jcc@debian.org>
License: ISC
Files: calamares/branding/debian/*png
@@ -11,7 +11,7 @@ Copyright: 2019 Isabelle Simpkins <isy@koipond.org.uk>
License: CC-BY-SA-3.0
Files: debian/*
Copyright: 2016-2023 Jonathan Carter <jcc@debian.org>
Copyright: 2016-2020 Jonathan Carter <jcc@debian.org>
License: ISC
Files: calamares/branding/debian/show.qml
+1 -1
View File
@@ -2,7 +2,7 @@ calamares etc
calamares-modules/* usr/lib/calamares/modules
scripts/* usr/sbin
*.desktop usr/share/applications
calamares-install-debian usr/bin
install-debian usr/bin
artwork/install-debian.png usr/share/pixmaps
conf/96_calamares-settings-debian.gschema.override usr/share/glib-2.0/schemas
conf/calamares-desktop-icon.desktop etc/xdg/autostart
+49
View File
@@ -0,0 +1,49 @@
Description: Enable display manager module, allowing autologins to work
* Enable displaymanager module, fixing autologin options
(Closes: #934503, #934504)
Author: Jonathan Carter <jcc@debian.org>
Bug-Debian: https://bugs.debian.org/934503
Bug-Debian: https://bugs.debian.org/934504
Last-Update: 2020-07-15
--- /dev/null
+++ calamares-settings-debian-10.0.20/calamares/modules/displaymanager.conf
@@ -0,0 +1,28 @@
+# Configure one or more display managers (e.g. SDDM)
+# with a "best effort" approach.
+---
+#The DM module attempts to set up all the DMs found in this list, in that precise order.
+#It also sets up autologin, if the feature is enabled in globalstorage.
+#The displaymanagers list can also be set in globalstorage, and in that case it overrides anything set up here.
+displaymanagers:
+ - slim
+ - sddm
+ - lightdm
+ - gdm
+ - mdm
+ - lxdm
+ - kdm
+
+#Enable the following settings to force a desktop environment in your displaymanager configuration file:
+#defaultDesktopEnvironment:
+# executable: "startkde"
+# desktopFile: "plasma"
+
+#If true, try to ensure that the user, group, /var directory etc. for the
+#display manager are set up correctly. This is normally done by the distribution
+#packages, and best left to them. Therefore, it is disabled by default.
+basicSetup: false
+
+#If true, setup autologin for openSUSE. This only makes sense on openSUSE
+#derivatives or other systems where /etc/sysconfig/displaymanager exists.
+sysconfigSetup: false
--- calamares-settings-debian-10.0.20.orig/calamares/settings.conf
+++ calamares-settings-debian-10.0.20/calamares/settings.conf
@@ -36,6 +36,7 @@ sequence:
- keyboard
- localecfg
- users
+ - displaymanager
- networkcfg
- hwclock
- services-systemd
+26
View File
@@ -0,0 +1,26 @@
Description: fix umask for initramfs permissions
By default, initramfs is world-readable. This configures a snippet
to ensure that the initramfs that will be generated is only accessable
by root.
Author: Jonathan Carter <jcc@debian.org>
Bug-Debian: https://bugs.debian.org/931373
Bug: https://github.com/calamares/calamares/issues/1191
Last-Update: 2019-07-08
--- calamares-settings-debian-10.0.20.orig/scripts/bootloader-config
+++ calamares-settings-debian-10.0.20/scripts/bootloader-config
@@ -2,6 +2,14 @@
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
+# Set secure permissions for the initramfs if we're configuring
+# full-disk-encryption. The initramfs is re-generated later in the
+# installation process so we only set the permissions snippet without
+# regenerating the initramfs right now:
+if [ "$(mount | grep $CHROOT" " | cut -c -16)" = "/dev/mapper/luks" ]; then
+ echo "UMASK=0077" > $CHROOT/etc/initramfs-tools/conf.d/initramfs-permissions
+fi
+
echo "Running bootloader-config..."
if [ -d /sys/firmware/efi/efivars ]; then
+3
View File
@@ -0,0 +1,3 @@
fix-initramfs-permissions
enable-displaymanagers-module
use-xdg-user-dir
+48
View File
@@ -0,0 +1,48 @@
Description: Use xdg-user-dir to specify Desktop directory
Desktop directory was hardcoded to ~/Desktop, but that path
will change depending on the user's language.
.
With this patch we user xdg-user-dir to set the Desktop directory
so that it's correct regardless of language.
Author: Jonathan Carter <jcc@debian.org>
Bug-Debian: https://bugs.debian.org/959541
Last-Update: 2020-07-15
--- calamares-settings-debian-10.0.20.orig/add-calamares-desktop-icon
+++ calamares-settings-debian-10.0.20/add-calamares-desktop-icon
@@ -2,24 +2,26 @@
# Creates an "Install Debian" icon on the live session tested with:
# Xfce, LXDE, LXqt, Gnome, KDE, Mate, Cinnamon
+# We query xdg-user-dir because the Desktop directory has different
+# names for different languages
+DESKTOP=$(xdg-user-dir DESKTOP)
# Create ~/Desktop just in case this runs before the xdg folder
# creation script.
-mkdir -p ~/Desktop
-
+mkdir -p $DESKTOP
# Among the Debian desktop environments, LXDE is the only one
# that behaves completely different.
if [ -f /usr/bin/lxsession ]; then
- echo "[Desktop Entry]" > ~/Desktop/install-debian.desktop
- echo "Type=Link" >> ~/Desktop/install-debian.desktop
- echo "Name=Install Debian" >> ~/Desktop/install-debian.desktop
- echo "Icon=install-debian" >> ~/Desktop/install-debian.desktop
+ echo "[Desktop Entry]" > $DESKTOP/install-debian.desktop
+ echo "Type=Link" >> $DESKTOP/install-debian.desktop
+ echo "Name=Install Debian" >> $DESKTOP/install-debian.desktop
+ echo "Icon=install-debian" >> $DESKTOP/install-debian.desktop
echo "URL=/usr/share/applications/install-debian.desktop" \
- >> ~/Desktop/install-debian.desktop
+ >> $DESKTOP/install-debian.desktop
else
- cp /usr/share/applications/install-debian.desktop ~/Desktop
+ cp /usr/share/applications/install-debian.desktop $DESKTOP
# Xfce needs this executable otherwise it complains, everything
# else doesn't seem to care either way.
- chmod +x ~/Desktop/install-debian.desktop
+ chmod +x $DESKTOP/install-debian.desktop
fi
-3
View File
@@ -1,3 +0,0 @@
---
Repository: https://salsa.debian.org/live-team/calamares-settings-debian.git
Repository-Browse: https://salsa.debian.org/live-team/calamares-settings-debian
+1 -2
View File
@@ -1,3 +1,2 @@
version=4
opts="searchmode=plain" \
https://salsa.debian.org/live-team/calamares-settings-debian/tags?sort=updated_desc -/archive/v?\d[\d.]+/calamares-settings-debian-@ANY_VERSION@@ARCHIVE_EXT@ debian uupdate
https://salsa.debian.org/live-team/calamares-settings-debian/tags .*/calamares-settings-debian-(.*)\.tar\.gz
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
###
# Wrapper for running calamares on Debian live media
###
# Stale file left behind by live-build that messes with partitioning
sudo mv /etc/fstab /etc/fstab.orig.calamares
# Access control to run calamares as root for xwayland
xhost +si:localuser:root
pkexec calamares
xhost -si:localuser:root
# Restore stale fstab, for what it's worth
sudo mv /etc/fstab.orig.calamares /etc/fstab
@@ -3,7 +3,7 @@ Type=Application
Version=1.0
Name=Install Debian
GenericName=Calamares Installer
Exec=calamares-install-debian
Exec=install-debian
Comment=Calamares Installer for Debian Live
Keywords=calamares;system;install;debian;installer
Icon=install-debian
+3 -9
View File
@@ -2,26 +2,20 @@
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
# Install luks utilities if needed.
# Also, set secure permissions for the initramfs if we're configuring
# Set secure permissions for the initramfs if we're configuring
# full-disk-encryption. The initramfs is re-generated later in the
# installation process so we only set the permissions snippet without
# regenerating the initramfs right now:
if [ "$(mount | grep $CHROOT" " | cut -c -16)" = "/dev/mapper/luks" ]; then
echo "UMASK=0077" > $CHROOT/etc/initramfs-tools/conf.d/initramfs-permissions
chroot $CHROOT apt-get -y install cryptsetup-initramfs cryptsetup keyutils
fi
echo "Running bootloader-config..."
if [ -d /sys/firmware/efi/efivars ]; then
echo " * Installing grub-efi (uefi)..."
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-efi
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-efi-amd64 cryptsetup keyutils
else
echo " * install grub... (bios)"
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc
DEBIAN_FRONTEND=noninteractive chroot $CHROOT apt-get -y install grub-pc cryptsetup keyutils
fi
# Re-enable os-prober:
sed -i "s/#GRUB_DISABLE_OS_PROBER=false/# OS_PROBER re-enabled by Debian Calamares installation:\nGRUB_DISABLE_OS_PROBER=false/g" $CHROOT/etc/default/grub
chroot $CHROOT /usr/sbin/update-grub
-13
View File
@@ -1,13 +0,0 @@
#!/bin/sh
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
if [ "$1" = "-u" ]; then
rm $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io
sync
exit 0
fi
echo "force-unsafe-io" > $CHROOT/etc/dpkg/dpkg.cfg.d/calamares-force-unsafe-io
exit 0
+7 -11
View File
@@ -4,22 +4,18 @@
#
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
RELEASE="trixie"
RELEASE="bullseye"
cat << EOF > $CHROOT/etc/apt/sources.list
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian $RELEASE main non-free-firmware
deb-src http://deb.debian.org/debian $RELEASE main non-free-firmware
deb http://deb.debian.org/debian $RELEASE main
deb-src http://deb.debian.org/debian $RELEASE main
deb http://deb.debian.org/debian $RELEASE-updates main non-free-firmware
deb-src http://deb.debian.org/debian $RELEASE-updates main non-free-firmware
deb http://deb.debian.org/debian $RELEASE-updates main
deb-src http://deb.debian.org/debian $RELEASE-updates main
deb http://security.debian.org/debian-security/ $RELEASE-security main non-free-firmware
deb-src http://security.debian.org/debian-security/ $RELEASE-security main non-free-firmware
# Backports allow you to install newer versions of software made available for this release
deb http://deb.debian.org/debian $RELEASE-backports main non-free-firmware
deb-src http://deb.debian.org/debian $RELEASE-backports main non-free-firmware
deb http://security.debian.org/debian-security/ $RELEASE/updates main
deb-src http://security.debian.org/debian-security/ $RELEASE/updates main
EOF
exit 0
+1 -1
View File
@@ -2,7 +2,7 @@
CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g")
MEDIUM_PATH="/run/live/medium"
RELEASE="trixie"
RELEASE="bullseye"
if [ "$1" = "-u" ]; then
umount $CHROOT/$MEDIUM_PATH