It's output is better structured than hwinfo and has been requested a
few times by users. Now it is finally packaged in Arch, so include it.
About 1 MB.
Fixes#260 and part of #115
Without this second faketime call the TLS certificate validity times will pose a problem when
downloading from https mirrors.
Hopefully fixes#313 for good.
Newer glibc versions do not provide nss libraries like libnss_files
as fully versioned files and symlinks anymore, but just have libnss_files.so.2.
archiso expected symlinks and this leads to build failures.
Adapt the archiso patch to the new file scheme.
Fixes#314
Before this patch a serial console was only enabled in syslinux for
traditional BIOS, not in grub / UEFI. In traditional BIOS the baud rate
was 38400 before.
Today 38400 is rarely used anymore and most modern devices using a
serial console default to 115200, which is the highest baudrate possible
with the original UART-ICs. Modern UART-ICs usually support higher
baudrates too, but they need a special driver for that. So 115200
is often used because of the wider compatibility.
In grub and syslinux a serial console can fully work in parallel to the
regular console. So enabling it doesn't change anything when nothing is
connected to the serial console or no serial port is installed at all.
This commit only touches the bootloaders, not the boot entries.
Consider you don't have a keyboard connected and can only connect over the network. Or the
keyboard you use doesn't work in the bootloader due to BIOS issues with USB. Then waiting
the whole 90 seconds is cumbersome.
30 seconds should still be enough to see the bootloader over a slow network KVM, get the
correct monitor or keyboard attached and similar things. So it should still be enough time
to modify the default boot if desired.
Allows to preconfigure common commands so that they can be accessed by just pressing
the up arrow key or searched with ctrl+r.
Move the "setkmap" command (which was previously hardcoded into .bash_history) into
100-defaults.yaml, allowing it to be overridden.
Example config:
sysconfig:
bash_history:
100: "setkmap"
200: "reverse_ssh support.example.com 1234"
The Mapping / dict key is used for lexicographic reverse-ordering of the entries. Reverse-ordering
means the lowest key will show up first when pressing the up arrow key.
Given some circumstances like matching IDs and partition setup, systemd-gpt-auto-generator
will auto-mount specially marked partitions. This would interfere with SystemRescue and also
go against the no-automount policy of SystemRescue.
So remove systemd-gpt-auto-generator during build.
VNC does not make much sense if X11 isn't running.
Automatically starting X11 on dovnc was done before SystemRescue 9.00, but
this logic seems to have been lost in the option handling code refactoring.
add sysresccd/.imageinfo file to the iso image, allows systemrescue-usbwriter to determine compatibility
See merge request systemrescue/systemrescue-sources!246
The upcoming systemrescue-usbwriter should work mostly independent of SystemRescue .iso version
and one systemrescue-usbwriter version should work for a wide range of SystemRescue versions.
For this to work, it has to exactly determine compatibility without any crude guesswork.
The necessary info for this is stored in the imageinfo file.
It also contains a "FORMAT_EPOCH" field that allows to explicitly declare incompatibility to older
versions of systemrescue-usbwriter in case automatic compatibility detection based on syslinux
version etc. doesn't work.
These embedded checksums can help against accidental image corruption,
for example due to bad cache data, broken mirror servers or bad media.
They are not digital signatures and do *not* help against bad actors
manipulating the .iso image.
Images can be checked manually with the "checkisomd5" command. This
is done automatically when using the Fedora media writer or the upcoming
systemrescue-usbwriter.
since recently /run/archiso/copytoram is bind-mounted to /run/archiso/bootmnt.
This means sysrescue-configuration.lua should just load yaml files from
/run/archiso/bootmnt and not both, otherwise they would be loaded twice.
Configuring the nofirewall option by the sysrescue-initialize script must be done before the ip6?tables service.
Configuring the firewall should be finished before beginning to initialize the network.
But the rest of sysrescue-initialize should still be done in parallel to networking
being set up for a fast boot sequence. Also some services in sysrescue-initialize require
networking being online, for example load_srm with a remote url.
The proper way to accommodate all these needs is to split sysrescue:
sysrescue-initialize-prenet: must be finished before the network-pre.target
sysrescue-initialize-whilenet: started after sysrescue-initialize-prenet, can run in parallel
to networking being set up.