Commit graph

610 commits

Author SHA1 Message Date
Gerd v. Egidy d01b5771cb Merge branch 'ipw2xxx-fw' into 'main'
remove ipw2100-fw and ipw2200-fw wifi firmware packages as they are no longer available in Arch

See merge request systemrescue/systemrescue-sources!234
2022-10-01 19:06:59 +00:00
Gerd v. Egidy 07211ae322 remove ipw2100-fw and ipw2200-fw wifi firmware packages as they are no longer available in Arch
The wifi chipsets they are from are from the early 2000s and the drivers for them aren't using the current
kernel interfaces.

See:
https://lists.archlinux.org/archives/list/arch-dev-public@lists.archlinux.org/thread/UKXPJEJZPU5PFKAPSATNL2DSWFGNEUCK/
and for some more background:
https://fedoraproject.org/wiki/Changes/RemoveWirelessExtensions
2022-10-01 20:54:29 +02:00
Gerd v. Egidy 69e118b660 Merge branch 'mkpasswd' into 'main'
add mkpasswd: hash a password for use in /etc/shadow or htpasswd

See merge request systemrescue/systemrescue-sources!232
2022-09-15 19:05:22 +00:00
Gerd v. Egidy dcc27afc06 add mkpasswd: hash a password for use in /etc/shadow or htpasswd
mkpasswd is finally available packaged on Arch, so add it to allow
manually replacing a password in /etc/shadow, for when chroots or
pam don't work as wanted. Also supports advanced hash algos like
yescrypt that can't be set via the pam stack yet.

Because the source for mkpasswd is part of the whois package, it
is currently packaged as part of whois. But it might get it's own
package in the future, so add a check for /usr/bin/mkpasswd during
build time.
2022-09-15 20:58:33 +02:00
Gerd v. Egidy d0946d6c3f Merge branch 'initramfs-pxe-http' into 'main'
don't keep airootfs.sfs in ram twice when using archiso_http_srv (#56)

See merge request systemrescue/systemrescue-sources!231
2022-09-14 20:50:55 +00:00
Gerd v. Egidy 17093ae1ef update changelog 2022-09-14 22:37:59 +02:00
Gerd v. Egidy 0f01ff896a allow using https urls in archiso_http_srv by disabling CA checks
archiso_http_srv is used in initramfs and we don't have a database
of trusted CAs there. So ignore all CA checks to allow downloading
from https at all.
2022-09-14 22:33:01 +02:00
Gerd v. Egidy ba97b5ce78 don't keep airootfs.sfs in ram twice when using archiso_http_srv (#56)
Without this patch, airootfs.sfs is downloaded to /run/archiso/httpspace
and then copied to /run/archiso/bootmnt. copytoram is automatically
activated, which copies it to /run/archiso/copytoram and removes
/run/archiso/bootmnt. The original /run/archiso/httpspace was kept,
wasting ram.

This patch gets rid of /run/archiso/httpspace and directly downloads
to /run/archiso/bootmnt. This is then copied to copytoram and bootmnt
removed, so we don't keep two copies in ram anymore.
2022-09-14 22:26:10 +02:00
Gerd v. Egidy 99b906f21f Merge branch 'mountall-settle' into 'main'
mountall: use udevadm settle to wait for newly opened cryptodisks to appear in /dev/mapper

See merge request systemrescue/systemrescue-sources!230
2022-09-06 18:42:01 +00:00
Gerd v. Egidy 3b0a91f7d7 update changelog 2022-09-06 20:39:51 +02:00
Gerd v. Egidy c52dcbeeb0 mountall: show target mountpoint in output 2022-09-06 20:24:46 +02:00
Gerd v. Egidy d8de1c8199 mountall: use udevadm settle to wait for newly opened cryptodisks to appear in /dev/mapper 2022-09-06 20:19:53 +02:00
Gerd v. Egidy 495fea0194 Merge branch 'rclone-sysconfig' into 'main'
Add rclone option to the "sysconfig" scope of YAML config file

See merge request systemrescue/systemrescue-sources!229
2022-08-24 11:24:54 +00:00
Gerd v. Egidy b0bd95a977 Add rclone option to the "sysconfig" scope of YAML config file
rclone needs a rclone.conf file before it can be used, it contains
the urls, login data and similar.

Use the sysconfig.rclone.config hierarchy instead of just sysconfig.rclone
to allow adding features later. These could be support for encrypted
rclone config files (these would then go into sysconfig.rclone.crypted_config)
or things like automounting.
2022-08-24 13:18:08 +02:00
Francois Dupoux 2c2008a63f Merge branch 'release904' into 'main'
SystemRescue-9.04

See merge request systemrescue/systemrescue-sources!228
2022-08-07 13:07:51 +00:00
Francois Dupoux 89481d9e9f SystemRescue-9.04 2022-08-07 14:05:15 +01:00
Gerd v. Egidy 61cc03ea83 Merge branch 'lua-https-fix' into 'main'
don't do certificate verification for https downloads in the lua script

See merge request systemrescue/systemrescue-sources!227
2022-08-07 11:35:07 +00:00
Gerd v. Egidy e9549eba34 don't do certificate verification for https downloads in the lua script
it is usually run during initramfs: we don't have a CA database there, so
all https downloads would fail otherwise.

Not doing cert verification at this step is clearly documented, so no
unexpected security risk for the user.
2022-08-07 12:56:41 +02:00
Gerd v. Egidy 81db3b13db improve error message in case the lua script can't download a file
Now prints the actual error message from the http library instead of a
generic "Could not connect" message.
2022-08-07 12:53:16 +02:00
Francois Dupoux 1e8ad8d465 Merge branch 'size-reduction' into 'main'
Remove files to reduce image size

See merge request systemrescue/systemrescue-sources!221
2022-08-06 14:08:25 +00:00
Gerd v. Egidy bc797d36b9 Merge branch 'changelog' into 'main'
add "cow_label" and "cow_directory" changes to the changelog

See merge request systemrescue/systemrescue-sources!226
2022-08-06 13:15:39 +00:00
Gerd v. Egidy a7fd2a5855 add "cow_label" and "cow_directory" changes to the changelog 2022-08-06 15:14:56 +02:00
Gerd v. Egidy c42634e320 Merge branch 'cow-options-yaml' into 'main'
add cow_label and cow_directory options to the global scope of the yaml config file

See merge request systemrescue/systemrescue-sources!225
2022-08-05 20:14:12 +00:00
Gerd v. Egidy 533a4cab7e add cow_label and cow_directory options to the global scope of the yaml config file
Allows to set to set the persistent backing store options via the yaml config too and
not only through boot commandline options.
2022-08-05 22:05:02 +02:00
Gerd v. Egidy b85260c377 Merge branch 'improve-build' into 'main'
only unmount chroot /dev if still mounted

See merge request systemrescue/systemrescue-sources!224
2022-08-05 19:32:41 +00:00
Gerd v. Egidy 565c6d0451 only unmount chroot /dev if still mounted
The latest Arch updates changed mount behavior during build, at least that
is what I'm seeing on my machine. So only do the second unmount if the
chroot /dev is still mounted. Otherwise the build script would abort due to
the error returncode.
2022-08-05 21:29:28 +02:00
Gerd v. Egidy 6e524a040c don't enforce a changelog entry for releases with "test" in their name, same as with "beta" 2022-08-05 21:28:05 +02:00
Gerd v. Egidy 5e92f0be16 Merge branch 'new-programs' into 'main'
Add new programs (#298)

See merge request systemrescue/systemrescue-sources!223
2022-08-02 19:43:35 +00:00
Gerd v. Egidy efab792a6d changelog entries 2022-08-02 21:41:20 +02:00
Gerd v. Egidy e3537b6970 add new packages: rclone, qemu-img, multipath-tools, unrar (#298) 2022-08-02 21:28:42 +02:00
Gerd v. Egidy 6312e6d136 Merge branch 'mountall' into 'main'
Small mountall improvements

See merge request systemrescue/systemrescue-sources!222
2022-08-01 20:43:05 +00:00
Gerd v. Egidy c0cddfc630 add --readonly option to mountall 2022-08-01 22:40:48 +02:00
Gerd v. Egidy e3b7b2079e use already existing mountpoints in mountall when they are empty and nothing mounted 2022-08-01 22:12:52 +02:00
Gerd v. Egidy 66e5801538 remove qt 5 and 6 translations to reduce image size
Qt 5 and 6 package translation files for common widgets that programs
can opt to use. These translation files take up about 2 MB of the final
iso image.

When the translations are removed, qt is designed to show messages
in the default language, English.

SystemRescue currently contains 2 programs using qt5 and qt6. I
tested both with the default en_US.UTF-8 and custom de_DE.UTF-8 locales:

featherpad: contains it's own complete translation. It's UI uses the
configured locale and it works regardless if the qt-translations are
installed or not.

yubikey-personalization-gui: doesn't use the translations at all and
is always shown in English. Removing the qt translations doesn't change
anything.

So programs coming with SystemRescue by default aren't affected. Also
other qt programs the user could install won't be affected. Only if the
user also changes the default locale, parts of some programs might be
now shown in English, like many other parts of SystemRescue that don't
come with translations.
2022-07-31 13:02:45 +02:00
Gerd v. Egidy 7a5acd23ed remove KeepassXC documentation to reduce image size
The KeepassXC documentation takes up 5 MB of final iso image size.
This is quite excessive.

Removing the documentation doesn't impair program usage. The documentation
can easily be accessed online from the KeepassXC website, it is directly
linked in the help menu.
2022-07-31 12:57:04 +02:00
Gerd v. Egidy f3aa63d575 Merge branch 'changelog' into 'main'
more changelog entries for 9.04

See merge request systemrescue/systemrescue-sources!220
2022-07-31 10:45:37 +00:00
Gerd v. Egidy e4fdbb4d2b more changelog entries for 9.04 2022-07-31 12:44:37 +02:00
Gerd v. Egidy 2fd9741076 Merge branch 'xfce-browser' into 'main'
configure firefox as default browser in xfce

See merge request systemrescue/systemrescue-sources!219
2022-07-31 10:34:15 +00:00
Gerd v. Egidy 359083a0cc configure firefox as default browser in xfce 2022-07-31 12:31:24 +02:00
Gerd v. Egidy 294ed59c13 Merge branch 'nomdlvm' into 'main'
add "nomdlvm" boot commandline option to not activate md raid or lvm devices

See merge request systemrescue/systemrescue-sources!218
2022-07-27 20:54:16 +00:00
Gerd v. Egidy 23691f03cf add entries for nomdlvm to the syslinux and grub boot menus 2022-07-27 22:52:23 +02:00
Gerd v. Egidy 4109b1ea38 add "nomdlvm" boot commandline option to not activate md raid or lvm devices
Activating md raid or lvm means that the kernel changes the metadata like
timestamps and mount counts of the devices and writes them to disk.
Also reconstructing degraded md raid devices is automatically activated.
There are cases when writing to disks is absolutely not wanted. For example
when restoring data from broken disks or when doing forensics.

The nomdlvm boot commandline option prevents any activation and thus
not wanted writes. If the user wants to use md or lvm with the option
set, all md or lvm devices have to be manually found and activated.

nomdlvm is only implemented as boot commandline option and does not use
the YAML config file. The reason is that the udev rules are evaluated
before sysrescue-configuration.lua is run, so the YAML config is not
ready yet. Moving nomdlvm after sysrescue-configuration.lua would be
an invasive operation and modify the activation order of all md and lvm
devices for all cases, increasing the probability of regressions.
Also udev rules offer a direct access to boot commandline options, making
implementation straightforward and robust.
2022-07-27 22:27:11 +02:00
Gerd v. Egidy 3b15d84f08 Merge branch 'lua-dns-fix' into 'main'
fix dns requests in sysrescue-configuration.lua

See merge request systemrescue/systemrescue-sources!217
2022-07-26 20:39:52 +00:00
Gerd v. Egidy 59aab67d6d fix dns requests in sysrescue-configuration.lua (#291)
The dns library used by lua requires /etc/hosts to exist, otherwise all
requests for name resolution are denied. This meant that using the
sysrescuecfg boot option with a http URL and hostname did not work
while using an IP worked.

This patch adds an empty /etc/hosts file to the initramfs image to fix this.
2022-07-26 22:05:42 +02:00
Gerd v. Egidy 5f027069a5 Merge branch 'pacman-key' into 'main'
deliver SystemRescue with an already initialized pacman key database

See merge request systemrescue/systemrescue-sources!216
2022-07-24 21:17:41 +00:00
Gerd v. Egidy 9a0e4acd16 deliver SystemRescue with an already initialized pacman key database
Initializing the pacman key database during boot can take considerable time
and there is no locking during this time against concurrent file access.
This can lead to problems when installing packages soon after reboot.
This also speeds up the boot process.

Additional disk space requirement is about 1 MByte.

Fixes #290
2022-07-24 23:11:11 +02:00
Gerd v. Egidy d094639e5c Merge branch 'mountall-improvements' into 'main'
Several improvements to the mountall script

See merge request systemrescue/systemrescue-sources!215
2022-07-24 18:00:23 +00:00
Gerd v. Egidy 09fcf3a452 improve check if already mounted for btrfs filesystems in mountall 2022-07-24 19:56:47 +02:00
Gerd v. Egidy f38c7ba8ca detect and open LUKS encrypted devices in mountall 2022-07-24 19:46:56 +02:00
Gerd v. Egidy 2d8bb769c1 use /sys/class/block instead of /sys/block in mountall to get all partitions 2022-07-24 19:13:47 +02:00