Commit 3a1a5935eb8c249cfbcbeba0eec80193bfdd0998

Authored by Silvan Calarco
1 parent f34c77408a
Exists in master

Preliminary addition of custom calamares installer configuration files for openmamba

Showing 22 changed files with 371 additions and 0 deletions Side-by-side Diff

... ... @@ -87,6 +87,7 @@
87 87 $(INSTALL_PROGRAM) liveuser-sudoers $(DESTDIR)$(sysconfdir)/sudoers.d/liveuser
88 88 $(INSTALL_DATA) installer/openmamba-installer.desktop $(DESTDIR)$(SYSTEM_MENU_DIR)
89 89 cp -a liveuser/.kde4 $(DESTDIR)/home/liveuser/
  90 + cp -a calamares $(DESTDIR)$(sysconfdir)/
90 91  
91 92 clean:
92 93  
calamares/branding/openmamba/branding.desc
  1 +---
  2 +componentName: openmamba
  3 +
  4 +strings:
  5 + productName: openmamba GNU/Linux
  6 + shortProductName: openmamba
  7 + version: milestone3
  8 + shortVersion: 3.0
  9 + versionedName: openmamba GNU/Linux milestone3 3.0
  10 + shortVersionedName: openmamba 3.0
  11 + bootloaderEntryName: openmamba
  12 +
  13 +images:
  14 + productLogo: "openmamba.png"
  15 + productIcon: "openmamba.png"
  16 +
  17 +slideshow: "show.qml"
calamares/branding/openmamba/openmamba.png

20.6 KB

calamares/branding/openmamba/show.qml
  1 +/* === This file is part of Calamares - <http://github.com/calamares> ===
  2 + *
  3 + * Copyright 2015, Teo Mrnjavac <teo@kde.org>
  4 + *
  5 + * Calamares is free software: you can redistribute it and/or modify
  6 + * it under the terms of the GNU General Public License as published by
  7 + * the Free Software Foundation, either version 3 of the License, or
  8 + * (at your option) any later version.
  9 + *
  10 + * Calamares is distributed in the hope that it will be useful,
  11 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13 + * GNU General Public License for more details.
  14 + *
  15 + * You should have received a copy of the GNU General Public License
  16 + * along with Calamares. If not, see <http://www.gnu.org/licenses/>.
  17 + */
  18 +
  19 +import QtQuick 2.0;
  20 +import calamares.slideshow 1.0;
  21 +
  22 +Presentation
  23 +{
  24 + id: presentation
  25 +
  26 + Timer {
  27 + interval: 5000
  28 + running: false
  29 + repeat: true
  30 + onTriggered: presentation.goToNextSlide()
  31 + }
  32 +
  33 + Slide {
  34 +
  35 + Image {
  36 + id: background
  37 + source: "squid.png"
  38 + width: 200; height: 200
  39 + fillMode: Image.PreserveAspectFit
  40 + anchors.centerIn: parent
  41 + }
  42 + Text {
  43 + anchors.horizontalCenter: background.horizontalCenter
  44 + anchors.top: background.bottom
  45 + text: "This is a customizable QML slideshow.<br/>"+
  46 + "Distributions should provide their own slideshow and list it in <br/>"+
  47 + "their custom branding.desc file.<br/>"+
  48 + "To create a Calamares presentation in QML, import calamares.slideshow,<br/>"+
  49 + "define a Presentation element with as many Slide elements as needed."
  50 + wrapMode: Text.WordWrap
  51 + width: root.width
  52 + horizontalAlignment: Text.Center
  53 + }
  54 + }
  55 +
  56 + Slide {
  57 + centeredText: "This is a second Slide element."
  58 + }
  59 +
  60 + Slide {
  61 + centeredText: "This is a third Slide element."
  62 + }
  63 +}
calamares/modules/bootloader.conf
  1 +---
  2 +# Gummiboot configuration files settings, set kernel and initramfs file names
  3 +# and amount of time before default selection boots
  4 +# Optionally set the menu entry name to use in Gummiboot. If not specified here,
  5 +# this setting will be taken from branding.desc.
  6 +# bootloaderEntryName: KaOS-kf5
  7 +kernel: /vmlinuz-linux
  8 +img: /initramfs-linux.img
  9 +fallback: /initramfs-linux-fallback.img
  10 +
  11 +timeout: 10
  12 +
  13 +# GRUB 2 binary names and boot directory
  14 +# Some distributions (e.g. Fedora) use grub2-* (resp. /boot/grub2/) names.
  15 +grubInstall: "grub-install"
  16 +grubMkconfig: "grub-mkconfig"
  17 +grubCfg: "/boot/grub/grub.cfg"
calamares/modules/displaymanager.conf
  1 +---
  2 +#The DM module attempts to set up all the DMs found in this list, in that precise order.
  3 +#It also sets up autologin, if the feature is enabled in globalstorage.
  4 +#The displaymanagers list can also be set in globalstorage, and in that case it overrides anything set up here.
  5 +displaymanagers:
  6 + - slim
  7 + - sddm
  8 + - lightdm
  9 + - gdm
  10 + - mdm
  11 + - lxdm
  12 + - kdm
  13 +
  14 +#Enable the following settings to force a desktop environment in your displaymanager configuration file:
  15 +#defaultDesktopEnvironment:
  16 +# executable: "startkde"
  17 +# desktopFile: "plasma"
  18 +
  19 +#If true, try to ensure that the user, group, /var directory etc. for the
  20 +#display manager are set up correctly. This is normally done by the distribution
  21 +#packages, and best left to them. Therefore, it is disabled by default.
  22 +basicSetup: false
calamares/modules/dummypython.conf
  1 +---
  2 +syntax: "YAML map of anything"
  3 +example:
  4 + whats_this: "module-specific configuration"
  5 + from_where: "dummypython.conf"
  6 +a_list:
  7 + - "item1"
  8 + - "item2"
  9 + - "item3"
  10 + - "item4"
  11 +a_list_of_maps:
  12 + - name: "an Item"
  13 + contents:
  14 + - "an element"
  15 + - "another element"
  16 + - name: "another item"
  17 + contents:
  18 + - "not much"
calamares/modules/finished.conf
  1 +---
  2 +restartNowEnabled: true
  3 +restartNowChecked: false
  4 +restartNowCommand: "systemctl -i reboot"
calamares/modules/fstab.conf
  1 +---
  2 +mountOptions:
  3 + default: defaults,noatime
  4 + btrfs: defaults,noatime,space_cache,autodefrag
  5 +ssdExtraMountOptions:
  6 + ext4: discard
  7 + jfs: discard
  8 + xfs: discard
  9 + swap: discard
  10 + btrfs: discard,compress=lzo
calamares/modules/grub.conf
  1 +---
  2 +# GRUB 2 binary names and boot directory
  3 +# Some distributions (e.g. Fedora) use grub2-* (resp. /boot/grub2/) names.
  4 +grubInstall: "grub-install"
  5 +grubMkconfig: "grub-mkconfig"
  6 +grubCfg: "/boot/grub/grub.cfg"
  7 +# Optionally set the --bootloader-id to use for EFI. If not set, this defaults
  8 +# to the bootloaderEntryName from branding.desc with problematic characters
  9 +# replaced. If an efiBootloaderId is specified here, it is taken to already be a
  10 +# valid directory name, so no such postprocessing is done in this case.
  11 +# efiBootloaderId: "dirname"
calamares/modules/grubcfg.conf
  1 +---
  2 +# If set to true, always creates /etc/default/grub from scratch even if the file
  3 +# already existed. If set to false, edits the existing file instead.
  4 +overwrite: false
  5 +# Default entries to write to /etc/default/grub if it does not exist yet or if
  6 +# we are overwriting it. Note that in addition, GRUB_CMDLINE_LINUX_DEFAULT and
  7 +# GRUB_DISTRIBUTOR will always be written, with automatically detected values.
  8 +defaults:
  9 + GRUB_TIMEOUT: 5
  10 + GRUB_DEFAULT: "saved"
  11 + GRUB_DISABLE_SUBMENU: true
  12 + GRUB_TERMINAL_OUTPUT: "console"
  13 + GRUB_DISABLE_RECOVERY: true
calamares/modules/initcpio.conf
  1 +---
  2 +kernel: linux312
calamares/modules/keyboard.conf
  1 +---
  2 +# The name of the file to write X11 keyboard settings to
  3 +# The default value is the name used by upstream systemd-localed.
  4 +# Relative paths are assumed to be relative to /etc/X11/xorg.conf.d
  5 +xOrgConfFileName: "/etc/X11/xorg.conf.d/00-keyboard.conf"
  6 +# The path to search for keymaps converted from X11 to kbd format
  7 +# Leave this empty if the setting does not make sense on your distribution.
  8 +convertedKeymapPath: "/lib/kbd/keymaps/xkb"
calamares/modules/locale.conf
  1 +---
  2 +region: "Europe"
  3 +zone: "London"
calamares/modules/machineid.conf
  1 +---
  2 +# Whether to create /etc/machine-id for systemd.
  3 +systemd: true
  4 +# Whether to create /var/lib/dbus/machine-id for D-Bus.
  5 +dbus: true
  6 +# Whether /var/lib/dbus/machine-id should be a symlink to /etc/machine-id
  7 +# (ignored if dbus is false, or if there is no /etc/machine-id to point to).
  8 +symlink: true
calamares/modules/mount.conf
  1 +---
  2 +extraMounts:
  3 + - device: proc
  4 + fs: proc
  5 + mountPoint: /proc
  6 + - device: sys
  7 + fs: sysfs
  8 + mountPoint: /sys
  9 + - device: /dev
  10 + mountPoint: /dev
  11 + options: bind
  12 + - device: tmpfs
  13 + fs: tmpfs
  14 + mountPoint: /run
  15 +
  16 +extraMountsEfi:
  17 + - device: /sys/firmware/efi
  18 + mountPoint: /sys/firmware/efi
  19 + options: bind
calamares/modules/packages.conf
  1 +---
  2 +#
  3 +# Which package manager to use, options are:
  4 +# - packagekit - PackageKit CLI tool
  5 +# - zypp - Zypp RPM frontend
  6 +# - yum - Yum RPM frontend
  7 +# - dnf - DNF, the new RPM frontend
  8 +# - urpmi - Mandriva package manager
  9 +# - apt - APT frontend for DEB and RPM
  10 +# - pacman - Pacman
  11 +#
  12 +backend: packagekit
  13 +#
  14 +# List of maps with package operations such as install or remove.
  15 +# Distro developers can provide a list of packages to remove
  16 +# from the installed system (for instance packages meant only
  17 +# for the live system).
  18 +#
  19 +# A job implementing a distro specific logic to determine other
  20 +# packages that need to be installed or removed can run before
  21 +# this one. Distro developers may want to install locale packages
  22 +# or remove drivers not needed on the installed system.
  23 +# This job will populate a list of dictionaries in the global
  24 +# storage called "packageOperations" and it is processed
  25 +# after the static list in the job configuration.
  26 +#
  27 +#operations:
  28 +# - install:
  29 +# - pkg1
  30 +# - pkg2
  31 +# - remove:
  32 +# - pkg3
  33 +# - pkg4
  34 +# - install:
  35 +# - pkg5
  36 +# - remove:
  37 +# - pkg2
  38 +# - pkg1
  39 +# install:
  40 +# - pkgs6
  41 +# - pkg7
calamares/modules/prepare.conf
  1 +---
  2 +requiredStorage: 5.5
  3 +requiredRam: 1.0
  4 +check:
  5 + - storage
  6 + - ram
  7 + - power
  8 + - internet
  9 +required:
  10 +# - storage
  11 + - ram
calamares/modules/services.conf
  1 +---
  2 +#systemd services and targets are enabled in this precise order
  3 +
  4 +services:
  5 + - name: "NetworkManager" #name of the service file
  6 + mandatory: false #true=> if enabling fails the installer errors out and quits
  7 + #false=>if enabling fails print warning to console and continue
  8 + - name: "cups"
  9 + mandatory: false
  10 +
  11 +targets:
  12 + - name: "graphical"
  13 + mandatory: true
calamares/modules/unpackfs.conf
  1 +---
  2 +unpack:
  3 + - source: "/path/to/filesystem.img"
  4 + sourcefs: "ext4"
  5 + destination: ""
  6 + - source: "/path/to/another/filesystem.sqfs"
  7 + sourcefs: "squashfs"
  8 + destination: ""
calamares/modules/users.conf
  1 +---
  2 +userGroup: users
  3 +defaultGroups:
  4 + - lp
  5 + - video
  6 + - network
  7 + - storage
  8 + - wheel
  9 + - audio
  10 +autologinGroup: autologin
  11 +sudoersGroup: wheel
calamares/settings.conf
  1 +# Configuration file for Calamares
  2 +# Syntax is YAML 1.2
  3 +---
  4 +# Modules can be job modules (with different interfaces) and QtWidgets view modules.
  5 +# They could all be placed in a number of different paths.
  6 +# "local" is LIBDIR/calamares/modules with settings in SHARE/calamares/modules
  7 +modules-search: [ local, /path/to/dir/with/more/modules ]
  8 +
  9 +# We define the module names in the order they should show up (QtWidget view modules,
  10 +# with one or more pages) OR be executed if enqueued (all other modules).
  11 +# Pages can also enqueue jobs for delayed execution in the order specified for the
  12 +# install phase.
  13 +
  14 +# Phase 1 - prepare.
  15 +# View modules are shown as UI pages, jobs from job modules are executed immediately in
  16 +# the background.
  17 +# Jobs should be executed sparingly (if at all) in this phase.
  18 +prepare:
  19 +- greeting
  20 +- locale
  21 +- keyboard
  22 +- prepare
  23 +- partition
  24 +- users
  25 +- summary
  26 +
  27 +# Phase 2 - install.
  28 +# View modules are not shown. Only the view modules shown in the previous phase are
  29 +# allowed, their names should be added here as placeholders to specify the order in
  30 +# which view module jobs should be enqueued. Job modules are also allowed.
  31 +install:
  32 +#- dummyprocess
  33 +#- dummypython
  34 +- partition
  35 +- mount
  36 +- unpackfs
  37 +- machineid
  38 +- fstab
  39 +- locale
  40 +- keyboard
  41 +- localecfg
  42 +- initcpiocfg
  43 +- initcpio
  44 +- users
  45 +#- displaymanager
  46 +- networkcfg
  47 +- hwclock
  48 +- services
  49 +#- dracut
  50 +#- initramfs
  51 +- grubcfg
  52 +- grub
  53 +#- bootloader
  54 +- umount
  55 +
  56 +# Phase 3 - postinstall.
  57 +# View modules are shown as UI pages, jobs from job modules are executed immediately in
  58 +# the background.
  59 +# Jobs should be executed sparingly (if at all) in this phase.
  60 +postinstall:
  61 +- finished
  62 +
  63 +
  64 +# A branding component is a directory, either in SHARE/calamares/branding or in
  65 +# /etc/calamares/branding (the latter takes precedence). The directory must contain a
  66 +# YAML file branding.desc which may reference additional resources (such as images) as
  67 +# paths relative to the current directory.
  68 +# Only the name of the branding component (directory) should be specified here, Calamares
  69 +# then takes care of finding it and loading the contents.
  70 +branding: openmamba