Commit graph

665 commits

Author SHA1 Message Date
Gerd v. Egidy e2f95d1589 Merge branch 'changelog-9.06' into 'main'
more changelog entries in preparation for 9.06

See merge request systemrescue/systemrescue-sources!260
2022-12-16 22:21:08 +00:00
Gerd v. Egidy bb5e2f0b90 more changelog entries in preparation for 9.06 2022-12-16 23:20:35 +01:00
Gerd v. Egidy fcc7ddb17e Merge branch 'mkfs.fat' into 'main'
use mkfs.fat instead of mformat for creating the EFI eltorito FAT boot image

See merge request systemrescue/systemrescue-sources!259
2022-12-16 21:59:15 +00:00
Gerd v. Egidy 17e8b84fd8 use mkfs.fat instead of mformat for creating the EFI eltorito FAT boot image
mformat created images seems to have some compatibility issues, so Arch upstream
changed to mkfs.fat.

Implements #301
2022-12-16 22:57:00 +01:00
Gerd v. Egidy 314baf45c1 Merge branch 'add-inxi' into 'main'
add inxi hardware detection tool

See merge request systemrescue/systemrescue-sources!258
2022-12-16 21:38:48 +00:00
Gerd v. Egidy 24055a911b add inxi hardware detection tool
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
2022-12-16 22:35:55 +01:00
Gerd v. Egidy dee6eb02b9 Merge branch 'pacman-download-faketime' into 'main'
Wrap downloads by pacman in another faketime call to cancel the one in "pacman-faketime"

See merge request systemrescue/systemrescue-sources!257
2022-12-16 21:27:13 +00:00
Gerd v. Egidy 04fa4bc9c0 Wrap downloads by pacman in another faketime call to cancel the one in "pacman-faketime"
Without this second faketime call the TLS certificate validity times will pose a problem when
downloading from https mirrors.

Hopefully fixes #313 for good.
2022-12-16 22:22:45 +01:00
Francois Dupoux 4170da1dc5 Merge branch 'memtest-uefi' into 'main'
Added Memtest86+ memory tester v6.00 for UEFI in the Grub boot menu (#308)

See merge request systemrescue/systemrescue-sources!256
2022-12-16 18:08:37 +00:00
Francois Dupoux ef39280ebe Added Memtest86+ memory tester v6.00 for UEFI in the Grub boot menu (#308) 2022-12-16 18:08:09 +00:00
Gerd v. Egidy 941a63007c Merge branch 'glibc-build-fix' into 'main'
fix build with newer glibc due to libnss symlinks

See merge request systemrescue/systemrescue-sources!255
2022-12-15 22:04:31 +00:00
Gerd v. Egidy 253e1fed4f fix build with newer glibc due to libnss symlinks
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
2022-12-15 23:01:02 +01:00
Gerd v. Egidy c466c954c0 Merge branch 'c2sfix' into 'main'
cowpacman2srm fix - check if directory exists before searching unit files

See merge request systemrescue/systemrescue-sources!254
2022-12-15 20:06:36 +00:00
Roland Schwarzkopf f3ee66b9e5 cowpacman2srm fix - check if directory exists before searching unit files 2022-12-15 10:46:21 +01:00
Gerd v. Egidy c38edd8205 Merge branch 'serial-console' into 'main'
activate serial console in grub/UEFI, change baud rate to 115200

See merge request systemrescue/systemrescue-sources!253
2022-12-12 09:54:14 +00:00
Gerd v. Egidy 8818011981 add bootloader entries for booting with a serial console 2022-12-11 22:44:14 +01:00
Gerd v. Egidy eb066bcd34 activate serial console in grub/UEFI, change baud rate to 115200
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.
2022-12-11 22:26:24 +01:00
Francois Dupoux ed0a566451 Merge branch 'autoboot-timeout' into 'main'
reduce timeout to automatic boot of SystemRescue with default settings from 90 seconds to 30

See merge request systemrescue/systemrescue-sources!252
2022-12-11 20:54:49 +00:00
Gerd v. Egidy 2d9daa8b16 reduce timeout to automatic boot of SystemRescue with default settings from 90 seconds to 30
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.
2022-12-11 21:40:49 +01:00
Gerd v. Egidy 755c5215cf Merge branch 'hosts-yaml' into 'main'
support configuring entries for the /etc/hosts file in the YAML config

See merge request systemrescue/systemrescue-sources!251
2022-12-11 20:19:41 +00:00
Gerd v. Egidy 58169f4ed2 support configuring entries for the /etc/hosts file in the YAML config
Example config:

sysconfig:
    hosts:
        "192.168.1.1": "example.net.lan"
        "192.168.1.10": "foo.net.lan foo"
2022-12-11 21:16:30 +01:00
Gerd v. Egidy f84d4aa6a1 Merge branch 'bash_history' into 'main'
support configuring the content of the bash_history in the YAML config

See merge request systemrescue/systemrescue-sources!250
2022-12-11 18:36:20 +00:00
Gerd v. Egidy 354b550524 support configuring the content of the bash_history in the YAML config
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.
2022-12-11 19:26:14 +01:00
Gerd v. Egidy ab7d49f071 Merge branch 'systemd-gpt-auto-generator' into 'main'
remove systemd-gpt-auto-generator to prevent it automounting partitions

See merge request systemrescue/systemrescue-sources!249
2022-12-11 16:57:35 +00:00
Gerd v. Egidy ddcd287322 remove systemd-gpt-auto-generator to prevent it automounting partitions
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.
2022-12-11 17:48:53 +01:00
Gerd v. Egidy a30ed60994 Merge branch 'dovnc-startx' into 'main'
automatically start x11 if "dovnc" option is given (#310)

See merge request systemrescue/systemrescue-sources!248
2022-12-10 21:16:11 +00:00
Gerd v. Egidy f57e608a69 automatically start x11 if "dovnc" option is given (#310)
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.
2022-12-10 22:13:01 +01:00
Gerd v. Egidy b3538193db Merge branch 'pacman-gpg-expire-fix' into 'main'
add "pacman-faketime" wrapper to work around expiring package signing keys (#313)

See merge request systemrescue/systemrescue-sources!247
2022-12-10 20:07:36 +00:00
Gerd v. Egidy 54bd03d4fd use new pacman-faketime wrapper in yay-prepare 2022-12-10 21:05:17 +01:00
Gerd v. Egidy f2134ca4ab add "pacman-faketime" wrapper to work around expiring package signing keys (#313)
Also disable gpg trust caching & regeneration to not "burn" the trust database by
running pacman without the faketime wrapper once.
2022-12-10 21:02:45 +01:00
Gerd v. Egidy d898b94680 Merge branch 'imageinfo' into 'main'
add sysresccd/.imageinfo file to the iso image, allows systemrescue-usbwriter to determine compatibility

See merge request systemrescue/systemrescue-sources!246
2022-11-23 21:54:04 +00:00
Gerd v. Egidy 00ccef7a07 add sysresccd/.imageinfo file to the iso image, allows systemrescue-usbwriter to determine compatibility
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.
2022-11-23 22:46:05 +01:00
Gerd v. Egidy 100032695d Merge branch 'isomd5sum' into 'main'
embed checksum into the .iso files created (isomd5sum)

See merge request systemrescue/systemrescue-sources!245
2022-11-23 21:03:32 +00:00
Gerd v. Egidy 594bf47b77 embed checksum into the .iso files created (isomd5sum)
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.
2022-11-23 21:57:04 +01:00
Francois Dupoux 09c553668b Merge branch 'release905' into 'main'
SystemRescue-9.05

See merge request systemrescue/systemrescue-sources!244
2022-10-21 16:12:14 +00:00
Francois Dupoux 4ca53aae72 SystemRescue-9.05 2022-10-21 17:11:34 +01:00
Gerd v. Egidy 75591c9551 Merge branch 'lua-copytoram' into 'main'
don't parse yaml files twice when using copytoram

See merge request systemrescue/systemrescue-sources!243
2022-10-19 18:26:46 +00:00
Gerd v. Egidy ac99cc791e Merge branch 'firefox-ads' into 'main'
disable advertising on the firefox new-tab / welcome page

See merge request systemrescue/systemrescue-sources!242
2022-10-19 18:25:05 +00:00
Gerd v. Egidy 3e74018b67 disable advertising on the firefox new-tab / welcome page 2022-10-19 20:23:33 +02:00
Gerd v. Egidy 711a9f6ea5 don't parse yaml files twice when using copytoram
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.
2022-10-19 20:20:13 +02:00
Gerd v. Egidy c0cb014d46 Merge branch 'sysrescue-initialize-xnet' into 'main'
Split initialization of SystemRescue into parts done before and in parallel to networking (#304)

See merge request systemrescue/systemrescue-sources!240
2022-10-16 10:34:43 +00:00
Gerd v. Egidy 5a32924e55 Split initialization of SystemRescue into parts done before and in parallel to networking (#304)
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.
2022-10-16 12:33:25 +02:00
Gerd v. Egidy 6d7848cf5f Merge branch 'sysctl-fix' into 'main'
fix error handling when setting sysctl via yaml config

See merge request systemrescue/systemrescue-sources!239
2022-10-15 15:31:12 +00:00
Gerd v. Egidy 61576de220 fix error handling when setting sysctl via yaml config 2022-10-15 17:30:08 +02:00
Gerd v. Egidy 87e2abb28e Merge branch 'yay-prepare-exclude' into 'main'
yay-prepare: don't reinstall packages from the sysrescuerepo

See merge request systemrescue/systemrescue-sources!238
2022-10-11 20:37:54 +00:00
Gerd v. Egidy 98a9623a91 yay-prepare: don't reinstall packages from the sysrescuerepo
They aren't available by default. Also it is quite unlikely that a package
from AUR would actually need includes or libraries from one of them.
2022-10-11 22:36:44 +02:00
Gerd v. Egidy 77be9507fd Merge branch 'changelog' into 'main'
changelog entries for recent merges

See merge request systemrescue/systemrescue-sources!237
2022-10-11 19:44:40 +00:00
Gerd v. Egidy e1f4b77f39 changelog entries for recent merges 2022-10-11 21:43:48 +02:00
Gerd v. Egidy eac0842969 Merge branch 'yay' into 'main'
add yay AUR-helper (#139)

See merge request systemrescue/systemrescue-sources!235
2022-10-11 19:32:24 +00:00
Gerd v. Egidy 28274716e8 Merge branch 'autorun-yaml' into 'main'
Implement new autorun configuration ( #287)

See merge request systemrescue/systemrescue-sources!233
2022-10-11 19:29:13 +00:00