Commit graph

51 commits

Author SHA1 Message Date
Gerd v. Egidy
a100257d96 Add script and config.yaml parameter for late-loading of SystemRescueModules 2022-03-27 14:07:38 +00: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
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
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
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
Francois Dupoux
7c5ce8cfdf Initial support for defining the global configuration with yaml file (#170) 2022-01-01 11:23:52 +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
Marcos Mello
755ccff92f Adapt autologin drop-ins for systemd 250
Fixes systemrescue/systemrescue-sources#233
2021-12-29 15:46:34 -03: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
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
Marcos Mello
d9b36c1c17 Add dovnc boot option
Fixes systemrescue/systemrescue-sources#228
2021-11-07 07:29:53 -03:00
Marcos Mello
08c163345d Add noautologin boot option
Fixes systemrescue/systemrescue-sources#189
2021-10-06 16:33:35 -03:00
Marcos Mello
0538667468 Add dostartx boot option
Fixes systemrescue/systemrescue-sources#222
2021-10-05 21:07:21 -03:00
fdupoux
00a532d4f9 Update the command used to generate a password hash 2021-08-28 10:20:56 +01:00
pfeilmann
b85b58365e Add ar_attempts 2021-07-08 17:21:08 +00:00
Gerd v. Egidy
f04f6fe827 make nofirewall option work reliable, needs explicit systemd service ordering
Fixes #197
2021-05-03 21:21:15 +02:00
fdupoux
9903a1826b Remove haveged (#186) 2021-02-27 13:58:29 +00:00
Marcos Mello
a5ab9a21a8 update serial-getty@.service to support 57600 baud rate
See:

7fe7547ba3
2020-10-16 07:12:08 -03:00
fdupoux
45d27a0be6 Rename project : SystemRescueCd ==> SystemRescue 2020-09-12 11:47:11 +01:00
fdupoux
5e2fe1119b Increase NM_ONLINE_TIMEOUT from 10 to 20 seconds (#120) 2020-08-05 07:54:44 +01:00
fdupoux
ddd5633b72 Updated path to python3 2020-08-03 20:44:48 +01:00
Richard DUMAIS
97680ce9ed permit httpS to download autorun scripts 2020-08-03 15:31:18 +02:00
fdupoux
d2f290f8e8 Copy autorun scripts to new location when copytoram is enabled (#126) 2020-07-25 14:49:56 +01:00
Francois Dupoux
967c1fbab9 Merge branch 'drop-netctl' into 'master'
Drop netctl in favor of systemd-networkd and systemd-resolved

Closes #75

See merge request fdupoux/sysresccd-src!58
2020-07-04 13:10:35 +00:00
Marcos Mello
efd0d23dd2 Drop netctl in favor of systemd-networkd and systemd-resolved
* Following upstream archiso

* NetworkManager stays as default in SystemRescueCd

* Explicitly symlink /etc/resolv.conf to /run/NetworkManager/resolv.conf
  to make clear NetworkManager is in charge

Closes fdupoux/sysresccd-src#75
2020-06-29 15:37:29 -03:00
Marcos Mello
98ce6fc461 Lower timeout limit for NetworkManager-wait-online.service
Default is 30 seconds. 10 seconds shall be enough.
2020-06-28 21:17:06 -03:00
Francois Dupoux
b109e8dbab Autorun should only run after the network is fully configured (#120) 2020-06-28 07:15:15 +00:00
Marcos Mello
246b170f5f Enable serial console autologin
Fixes fdupoux/sysresccd-src#113
2020-05-27 16:01:04 -03:00
Marcos Mello
a02b8535bd Simplify sysresccd-initialize script (again)
One less execve().
2020-04-12 16:20:51 -03:00
Marcos Mello
42c67ee5d3 Simplify sysresccd-initialize script
Less variables, less forked processes.
2020-04-11 22:34:30 -03:00
Francois Dupoux
70742f4882 Merge branch 'drop-standardoutput' into 'master'
sysresccd-initialize.service: drop StandardOutput=journal

See merge request fdupoux/sysresccd-src!16
2020-03-07 19:59:40 +00:00
Marcos Mello
e45a3e5aa5 sysresccd-initialize.service: drop StandardOutput=journal
It is the default setting.
2020-03-07 15:43:57 -03:00
Francois Dupoux
570dd026b5 Merge branch 'drop-after-network' into 'master'
Do not order sysresccd-initialize.service after network.target

See merge request fdupoux/sysresccd-src!12
2020-03-07 08:17:42 +00:00
Marcos Mello
480175a61c Do not order sysresccd-initialize.service after network.target
It is not necessary.
2020-03-06 20:44:22 -03:00
Marcos Mello
1bbb40ffc1 Fix interactive autorun scripts
* The synchronization point is getty-pre.target to block login while autorun
  is active

* After sysresccd-initialize.service to have keyboard layout configured

* stdin/stdout/stderr conected to /dev/console to make interactive scripts work

Closes fdupoux/sysresccd-src#18
2020-03-06 20:32:47 -03:00
Marcos Mello
8c6910583b Add rootshell boot option
chsh does input validation.

Fixes fdupoux/sysresccd-src#77
2020-03-05 07:34:47 -03:00
Marcos Mello
ba6a52de0d Autologin rework
* Passes through PAM (pam_systemd module) via login(1). This sets up
  systemd --user instance, which will create and listen on dbus session socket.

* login(1) is called (via agetty(8)) with -p option, keeping the environment
  pam_systemd configured for the user, most importantly
  DBUS_SESSION_BUS_ADDRESS.

* Thus dbus-launch call in /etc/X11/xinit/xinitrc is unnecessary.

* autologin.conf drop-in configured in the template unit (getty@.service)
  to make autologin work on all virtual consoles.
2020-03-03 20:21:46 -03:00
Francois Dupoux
21f20fca19 Merge branch 'fix-keymap' into 'master'
Fix and simplify keymap configuration

Closes #74

See merge request fdupoux/sysresccd-src!4
2020-02-29 11:07:31 +00:00
Marcos Mello
f7dca9e0b7 Fix and simplify keymap configuration
Use localectl to set kbd and x11 keymaps.

Order sysresccd-initialize.service before getty-pre.target (pasive target,
pulled in manually) to ensure console keymap is proper configured when
getty@.service runs.

Fixes #74
2020-02-28 10:30:32 -03:00
Marcos Mello
f5fed4cdae Minor sysresccd-initialize simplification
No functional change.
2020-02-28 09:45:18 -03:00
fdupoux
7c256c2799 Enabled iptables/ip6tables by default 2019-12-29 20:45:42 +00:00
fdupoux
30483ee7df SystemRescueCd-6.0.1 2019-02-09 14:21:40 +00:00