Commit graph

181 commits

Author SHA1 Message Date
Gerd v. Egidy b614840213 store the "setkmap" command in bash_history to make it accessible without typing
When the correct keyboard map is not set yet, it might be difficult for the user
to type in the command. This way they just have to press the arrow up key to reach it.

Fixes #273
2022-04-10 21:56:01 +02:00
Francois Dupoux 770fc6bf15 Update check-binaries.sh script with new custom packages 2022-04-10 18:58:54 +01:00
Gerd v. Egidy a100257d96 Add script and config.yaml parameter for late-loading of SystemRescueModules 2022-03-27 14:07:38 +00:00
Francois Dupoux afcebda039 Merge branch 'xorriso-parameter-check' into 'main'
ensure that the installed xorriso version supports the -drive_access parameter

See merge request systemrescue/systemrescue-sources!179
2022-02-23 17:58:17 +00:00
Francois Dupoux 860df60dab Fix the type of the default definition of parameter "ar_attempts" (#266) 2022-02-23 07:19:31 +00:00
Gerd v. Egidy aa6dac4bb4 ensure that the installed xorriso version supports the -drive_access parameter 2022-02-22 21:11:56 +01:00
Gerd v. Egidy 78e9f65208 Allow all kinds of autorun scripts (#245) 2022-01-31 21:13:27 +00:00
Francois Dupoux c15d70c558 Added support for loading remote yaml configuration files over http/https (#254) 2022-01-30 09:17:14 +00:00
fdupoux 21bd2294db Update exit status if there are errors in /usr/bin/sysrescue-configuration.lua 2022-01-29 17:59:54 +00:00
Francois Dupoux 0f0d899552 Allow to use option sysrescuecfg to restrict which local yaml config files to process (#254) 2022-01-29 12:34:03 +00:00
fdupoux 520b80e65e Improve processing of options passed on the boot command line 2022-01-28 21:50:17 +00:00
Francois Dupoux 35bd8314f3 Use generic logic for overriding config entries from values in yaml config files (#251) 2022-01-28 20:34:23 +00:00
Francois Dupoux ca6bcd6548 Implement the primary configuration processing script in lua (#251) 2022-01-26 20:07:53 +00:00
Gerd v. Egidy 4df6386059 delete unnecessary files (stray kernel image, unnecessary grub picture) 2022-01-19 21:52:41 +01:00
Gerd v. Egidy 0a9b3250cf Support for adding Certification Authorities (CAs) via YAML config
This allows to add additional CAs as trust anchors via the root key
"ca-trust" in the YAML config files.

Why is this helpful and can't be done for example with SRMs?

After the CA files are copied, "update-ca-trust" must be called. This
updates *all* ca trust files. This means your SRM will override all
trust files with the ones used when creating the SRM.

When you then use the SRM with a newer version of SystemRescue, you will
still use the old ca trust files from when the SRM was built.
2022-01-16 19:03:51 +01:00
Gerd v. Egidy 0d040c97f8 add the directory names for --auto mode to the help output 2022-01-15 22:50:57 +01:00
Gerd v. Egidy 90d494026f fix confusion of sysrescue-customize and systemrescue-customize in online help
The script is called "sysrescue-customize", so make sure to use that everywhere.
2022-01-15 22:43:13 +01:00
Gerd v. Egidy 770ce976ba fix typo in help message of systemrescue-customize 2022-01-11 23:51:36 +01:00
Gerd v. Egidy 048c1724bf easy way to use squashfs pseudofile: allows to override mode uid gid of files in the SRM
When using a non-root user to execute sysrescue-customize with the srm building function,
you won't have the rights to create files owned by root. When you want to keep the build_into_srm
dir in a git tree, you won't be able to store the file mode there. But using a specific file
mode is important for example for /root/.ssh

The mksquashfs pseudo file allows to solve this by overriding individual file modes like this:

cat <<EOF >recipe_dir/build_into_srm/.squashfs-pseudo
/root/.ssh m 700 root root
/root/.ssh/authorized_keys m 600 root root
EOF
2022-01-10 22:47:21 +01:00
fdupoux 13723f10b0 Rename default yaml config files 2022-01-09 17:19:53 +00:00
Gerd v. Egidy e66518dbae add sysrescue-customize script: allows to modify existing SystemRescue .iso images 2022-01-09 17:14:40 +00:00
Francois Dupoux a4d96bb424 Add support for yaml configuration files in autorun 2022-01-09 16:14:48 +00:00
Francois Dupoux e037cc089c Name the folder for configuration files "sysrescue.d" rather than "config.d" (#170) 2022-01-03 13:39:43 +00:00
Francois Dupoux c91a4bf8f4 Make the search for config files with a yaml extension case insensitive 2022-01-02 15:49:24 +00:00
Gerd v. Egidy 0fa4ecb891 improve Firefox default settings
- disable telemetry and studies, remove notice tab about telemetry
- force off DNS-over-HTTPS and always use the local dns resolver.
  This allows for example to access websites in the local part of a split dns setup
- set the default search engine to DuckDuckGo
- change the homepage to the internal firefox homepage (shows a searchbar and buttons).
  This doesn't load an external page (DuckDuckGo previously) without user consent/action,
  but still provides a convenient way to search via DuckDuckGo.
2022-01-01 12:50:09 +01:00
Francois Dupoux 7c5ce8cfdf Initial support for defining the global configuration with yaml file (#170) 2022-01-01 11:23:52 +00:00
Gerd v. Egidy 89b721e142 add ldd check for modesetting_drv.so too
modesetting_drv.so is the library that links to libgbm.so. We not only want
that libgbm.so has all dependecies satisfied, but also the lib that needs
libgbm.so in the first place.
2021-12-31 11:53:00 +01:00
fdupoux a00ea8d566 Update /usr/bin/check-binaries.sh to reflect the current custom packages 2021-12-31 08:10:34 +00:00
fdupoux b6f2c86c0c Remove the legacy shell version of sysrescue-initialize 2021-12-30 19:54:33 +00:00
fdupoux 0b3f0ce80e Convert sysrescue-initialize to python (#170) 2021-12-30 19:54:33 +00:00
Francois Dupoux 5d496ef056 Merge branch 'autologin-fix' into 'master'
Adapt autologin drop-ins for systemd 250

Closes #233

See merge request systemrescue/systemrescue-sources!132
2021-12-30 19:52:23 +00:00
Gerd v. Egidy 885dce5e11 add the SystemRescue website as offline documentation 2021-12-30 14:09:33 +00:00
Marcos Mello 755ccff92f Adapt autologin drop-ins for systemd 250
Fixes systemrescue/systemrescue-sources#233
2021-12-29 15:46:34 -03:00
Francois Dupoux 39056fe54c Merge branch 'pacman-snapshot' into 'master'
Use snapshot archive repo for pacman in SystemRescue by default

Closes #237

See merge request systemrescue/systemrescue-sources!124
2021-12-18 13:05:35 +00:00
Gerd v. Egidy 5799891875 disable the ldconfig run as it can unnecessarily slow down boot
The ldconfig service ("Rebuild Dynamic Linker Cache") updates /etc/ld.so.cache when it is
older than some preconfigured age. This increases boot time, especially when airootfs is
on a slower media, like a DVD-ROM drive or NFS. Since System Rescue doesn't change over time,
keeping the original file from release is fine.
2021-12-12 11:33:21 +01:00
Gerd v. Egidy 1c538c21d8 prevent update of the linux kernel in the pacman-rolling configuration
You can't easily update the kernel from within a running System Rescue.
Updating the kernel will create conflicts of the new kernel modules and the still running kernel.

This has been a problem in the past, see for example #238. So better prevent it.
2021-12-12 11:27:53 +01:00
Gerd v. Egidy 4421a2bc75 Use snapshot archive repo for pacman in SystemRescue by default
This prevents huge dependency downloads by pacman when the SystemRescue version gets older
by using a snapshot repo from the day the SystemRescue version is released.

The classic rolling repos from Arch are also available as option. Activate with the
"--config /etc/pacman-rolling.conf" option to pacman.

To allow switching on a per-command basis, two different sets of remote package databases
are required. But the local package database must be the same for both variants. This
is achived by using two different DBPaths in the pacman config files and bind-mounting
the local part together. pacman does not accept symlinks for this, so it must be a bind mount.
2021-12-06 21:06:23 +01:00
Marcos Mello 57ddbd000e Sync pacman-init.service with upstream archiso
See:
d0d4fa56cb
2021-12-02 15:38:21 -03:00
Gerd v. Egidy 63723d5931 Customize /etc/os-release for SystemRescue
Without this patch /etc/os-release contains stock data from Arch Linux
that does not really fit SystemRescue.

Fixes #236
2021-12-02 12:33:26 +01:00
Marcos Mello 54236ce107 Fix comment grammar 2021-11-11 14:38:26 -03:00
Marcos Mello 7744f40caa Make dovnc imply dostartx
Also do not append more than once to /root/.bash_profile in case both dovnc and dostartx are set.

Fixes systemrescue/systemrescue-sources#234
2021-11-10 21:13:13 -03:00
Marcos Mello 3478f96cb8 Fix vncpass= boot option 2021-11-08 11:36:15 -03:00
Francois Dupoux 9f96a25871 Merge branch 'dump' into 'master'
Add dump/restore utilities (#226)

See merge request systemrescue/systemrescue-sources!116
2021-11-07 11:23:21 +00:00
fdupoux d2742521c1 Fix for a filename change 2021-11-07 11:17:48 +00:00
fdupoux 77dbde7a8b Add dump/restore utilities (#226) 2021-11-07 11:16:00 +00:00
Francois Dupoux ba5e2c5e61 Merge branch 'vnc' into 'master'
Add dovnc boot option

Closes #228

See merge request systemrescue/systemrescue-sources!113
2021-11-07 10:40:51 +00:00
Marcos Mello d9b36c1c17 Add dovnc boot option
Fixes systemrescue/systemrescue-sources#228
2021-11-07 07:29:53 -03:00
fdupoux 083ce86feb Remove unneeded qcom firmware files (#219) 2021-11-07 08:39:57 +00:00
Gerd v. Egidy 0009e91a8f Support chrooting on older systems without usrmerge
On newer systems /bin is linked to /usr/bin, the same goes for /sbin.
This is called usrmerge. Some distributions seem to have introduced
usrmerge just very recently, like openSUSE in 2021. So SystemRescue
should fully support this for years to come.

So we need /bin, /sbin and /usr/sbin in the default $PATH to make it
easy to use from within a chroot.
2021-10-25 21:00:49 +02:00
Marcos Mello 08c163345d Add noautologin boot option
Fixes systemrescue/systemrescue-sources#189
2021-10-06 16:33:35 -03:00