Started spot for OEM things

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2024-01-05 12:40:40 +09:00
parent ff17374359
commit 92097cd9ed
3 changed files with 143 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# Put this file inthis location
# /etc/calamares/oem.conf
oem:
# OEM mode
enabled: truerrrrrrrrrrrrrrrrrrrrraserffewfrfesda sd f sdf sdf dsaf sdafa dsf sda fsd af
# OEM user account
user:
name: oemuser
password: oempassword
groups: [sudo, audio, video, plugdev]
# OEM system settings
system:
hostname: oemhostname

View File

@ -0,0 +1,110 @@
# Configuration file for Calamares
# Syntax is YAML 1.2
---
# "local" is LIBDIR/calamares/modules with settings in SHARE/calamares/modules
modules-search: [ local, /usr/lib/calamares/modules ]
# YAML: list of maps of string:string key-value pairs.
instances:
#- id: packages
# module: netinstall
# config: netinstall-packages.conf
#- id: system
# module: netinstall
# config: netinstall-system.conf
#- id: pkgs
# module: netinstall
# config: netinstall-pkgs.conf
sequence:
# Phase 1 - prepare.
# View modules are shown as UI pages, jobs from job modules
# are executed immediately in the background.
# Jobs should be executed sparingly (if at all) in this phase.
- show:
- welcome
- locale
- keyboard
- partition
# - netinstall@packages
- users
- summary
# Phase 2 - install.
# View modules are not shown. Only the view modules shown
# in the previous phase are allowed, their names should be
# added here as placeholders to specify the order in which
# view module jobs should be enqueued. Job modules are
# also allowed.
- exec:
- partition
- mount
- unpackfs
- sources-media
- machineid
- fstab
- locale
- keyboard
- localecfg
- users
- displaymanager
- networkcfg
- hwclock
- services-systemd
- bootloader-config
- grubcfg
- bootloader
- packages
- luksbootkeyfile
- luksopenswaphookcfg
- plymouthcfg
- initramfscfg
- initramfs
- sources-media-unmount
- sources-final
- shellprocess
- umount
# Phase 3 - postinstall.
# View modules are shown as UI pages, jobs from job modules are
# executed immediately in the background.
# Jobs should be executed sparingly (if at all) in this phase.
- show:
- finished
# A branding component is a directory, either in
# SHARE/calamares/branding or in /etc/calamares/branding
# (the latter takes precedence). The directory must contain a
# YAML file branding.desc which may reference additional resources
# (such as images) as paths relative to the current directory.
# Only the name of the branding component (directory) should be
# specified here, Calamares then takes care of finding it and
# loading the contents.
branding: peppermint
# If this is set to true, Calamares will show an "Are you sure?" prompt right
# before each execution phase, i.e. at points of no return. If this is set to
# false, no prompt is shown. Default is false.
#
# YAML: boolean.
prompt-install: false
# If this is set to true, Calamares will execute all target environment
# commands in the current environment, without chroot. This setting should
# only be used when setting up Calamares as a post-install configuration tool,
# as opposed to a full operating system installer.
#
# Some official Calamares modules are not expected to function with this
# setting. (e.g. partitioning seems like a bad idea, since that is expected to
# have been done already)
#
# Default is false (for a normal installer).
#
# YAML: boolean.
dont-chroot: false
# include the OEM settings
include_configuration("/etc/calamares/oem.conf")

View File

@ -132,6 +132,7 @@ class BuildXfce(BuildBase):
exec(execute) exec(execute)
return cmd_list return cmd_list
class BuildGflashback(BuildBase): class BuildGflashback(BuildBase):
""" This class will ensure the gnomeflashback builds are built """ """ This class will ensure the gnomeflashback builds are built """
def __init__(self, sbase, sarch): def __init__(self, sbase, sarch):
@ -213,6 +214,14 @@ class Decsions:
'b-debarm': ("deb", "_arm"), 'b-debarm': ("deb", "_arm"),
'b-devarm': ("dev", "_arm"), 'b-devarm': ("dev", "_arm"),
} }
build_type_mapping_oem = {
'b-deb64o': ("debo", "_64"),
'b-deb32o': ("debo", "_32"),
'b-dev64o': ("devo", "_64"),
'b-dev32o': ("devo", "_32"),
'b-debarmo': ("debo", "_arm"),
'b-devarmo': ("devo", "_arm"),
}
build_argument = self.arguments.b build_argument = self.arguments.b
if build_argument in build_type_mapping: if build_argument in build_type_mapping:
@ -220,6 +229,14 @@ class Decsions:
BuildXfce(*build_type_mapping[build_argument]) BuildXfce(*build_type_mapping[build_argument])
else: else:
logger.critical("You have not specified a build to process!") logger.critical("You have not specified a build to process!")
build_argument_oem = self.arguments.b
if build_argument_oem in build_type_mapping_oem:
readybuild()
BuildXfce(*build_type_mapping[build_argument])
else:
logger.critical("You have not specified a build to process!")
def dgnomefb(self): def dgnomefb(self):