Commit graph

28 commits

Author SHA1 Message Date
Gerd v. Egidy 54bd03d4fd use new pacman-faketime wrapper in yay-prepare 2022-12-10 21:05:17 +01: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 704d7a9e5c add yay AUR-helper (#139)
- call yay through a wrapper to take care of root/sudo handling
- add yay-prepare to reinstall everything that was stripped for size (like /usr/include)
- yay-prepare creates a yay user and sudo rights
- the wrapper is installed in /usr/bin/yay, we want it to clash with yay-packages that aren't adapted to SystemRescue
2022-10-02 15:34:00 +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 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 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
Gerd v. Egidy c0a1af428a don't try to mount swap space in mountall 2022-07-24 19:07:04 +02:00
Gerd v. Egidy 64eabbbbaa wait until we are online before doing a http/https load-srm
There is no dependency on NetworkManager being actually online when
sysrescue-initialize.py calls load-srm to honor the late_load_srm config
option. So without this patch this can fail when the network takes a
few seconds until the link is actually up.

Fixes #288
2022-06-04 17:10:43 +02:00
Gerd v. Egidy c2060e8a73 implement handling of serial consoles for autoterminal
serial consoles have separate systemd services (serial-getty@.service). We need to adapt
the handling and also need some different options for them than for regular gettys.

To allow sysrescue-initialize.py to differentiate between regular consoles and serial ones
they must be configured with the prefix "serial:" in the yaml, for example like this:

autoterminal:
    "serial:ttyS0": "/usr/bin/bash"
2022-05-12 22:53:57 +02:00
Gerd v. Egidy c3b0b576a4 Implement main part of autoterminal feature
See #258
2022-05-12 22:51:48 +02:00
Gerd v. Egidy a424ed7991 add "mountall" command
It loops through all available block devices in the system and tries to mount them.
They are mounted to /mnt/<devicename>.

If they have "dev", "proc" or "sys" dirs in them, then the respective dirs of the
running SystemRescue are bind-mounted into it. This allows running some commands
like grub-install when chrooting into the dir.
2022-04-24 21:53:21 +02:00
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 aa6dac4bb4 ensure that the installed xorriso version supports the -drive_access parameter 2022-02-22 21:11:56 +01:00
Gerd v. Egidy 0d040c97f8 add the directory names for --auto mode to the help output 2022-01-15 22:50:57 +01:00
Gerd v. Egidy 90d494026f fix confusion of sysrescue-customize and systemrescue-customize in online help
The script is called "sysrescue-customize", so make sure to use that everywhere.
2022-01-15 22:43:13 +01:00
Gerd v. Egidy 770ce976ba fix typo in help message of systemrescue-customize 2022-01-11 23:51:36 +01:00
Gerd v. Egidy 048c1724bf easy way to use squashfs pseudofile: allows to override mode uid gid of files in the SRM
When using a non-root user to execute sysrescue-customize with the srm building function,
you won't have the rights to create files owned by root. When you want to keep the build_into_srm
dir in a git tree, you won't be able to store the file mode there. But using a specific file
mode is important for example for /root/.ssh

The mksquashfs pseudo file allows to solve this by overriding individual file modes like this:

cat <<EOF >recipe_dir/build_into_srm/.squashfs-pseudo
/root/.ssh m 700 root root
/root/.ssh/authorized_keys m 600 root root
EOF
2022-01-10 22:47:21 +01:00
fdupoux 13723f10b0 Rename default yaml config files 2022-01-09 17:19:53 +00:00
Gerd v. Egidy e66518dbae add sysrescue-customize script: allows to modify existing SystemRescue .iso images 2022-01-09 17:14:40 +00:00
Gerd v. Egidy 885dce5e11 add the SystemRescue website as offline documentation 2021-12-30 14:09:33 +00:00
Gerd v. Egidy 7245748091 add reverse_ssh: Open a outbound SSH server connection (reverse SSH), primarily for remote support 2020-11-21 21:50:05 +01:00
fdupoux c84c1aacfc Added dislocker to access disks encrypted using bitlocker (#46) 2020-10-12 07:56:07 +01:00
fdupoux 5f5077b683 Updated comments regarding the use of pacman (#150) 2020-09-27 20:19:51 +01:00
fdupoux 45d27a0be6 Rename project : SystemRescueCd ==> SystemRescue 2020-09-12 11:47:11 +01:00