Commit graph

26 commits

Author SHA1 Message Date
Gerd v. Egidy ca74778681 show output of sysrescue-initialize.py on the boot console
show it immediately, not when the buffer is full. This also yields proper
timestamps in the journal in case some part of it takes longer to complete.
2022-06-04 17:08:53 +02:00
Gerd v. Egidy 845fd55243 rename systemd getty drop-in files: add numbering for easier overriding (they are loaded in lexicographic order) 2022-05-12 21:10:06 +02:00
Gerd v. Egidy e87660beeb execute sysrescue-configuration.lua only once
Before this patch sysrescue-configuration.lua was executed twice each boot:
(1) during initramfs stage (2) in the regular system as sysrescue-configuration.service

While in theory both runs should create the same output, this isn't guaranteed and
differences could appear for example because of network issues. Finding and debugging
these is difficult because the output of sysrescue-configuration.lua created during
initramfs isn't available anymore when the final system is running.

This patch lets sysrescue-configuration.lua just run once during initramfs. The
output JSON file is then written to the new tmpfs mounted dir /run/archiso/config/.
This dir is also made the new default location for sysrescue-effective-config.json.

A symlink from /etc/sysrescue/sysrescue-effective-config.json to the new location
is created for compatibility with previous releases.
2022-04-25 20:31:18 +02: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 ca6bcd6548 Implement the primary configuration processing script in lua (#251) 2022-01-26 20:07:53 +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
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
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
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 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
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
fdupoux 30483ee7df SystemRescueCd-6.0.1 2019-02-09 14:21:40 +00:00
fdupoux 5a6aec2276 SystemRescueCd-6.0.0 2019-02-02 11:22:52 +00:00