Commit graph

41 commits

Author SHA1 Message Date
fdupoux bc817e38bb Allow autorun scripts to be located in a folder at the root of the ISO 2022-01-08 17:14:01 +00:00
Francois Dupoux e037cc089c Name the folder for configuration files "sysrescue.d" rather than "config.d" (#170) 2022-01-03 13:39:43 +00:00
fdupoux cc4b91806c Delete the download page from the offline website 2022-01-03 11:04:17 +00:00
Francois Dupoux 7c5ce8cfdf Initial support for defining the global configuration with yaml file (#170) 2022-01-01 11:23:52 +00:00
Gerd v. Egidy 885dce5e11 add the SystemRescue website as offline documentation 2021-12-30 14:09:33 +00:00
fdupoux 071c2184d0 Rename variable 2021-12-19 10:14:07 +00:00
Gerd v. Egidy df26cdf5cc set kernel parameter iomem=relaxed by default
Allows to programs to directly write to hardware devices, for example
for using flashrom for firmware updates.

Closes #184
2021-12-18 22:16:04 +01:00
Gerd v. Egidy ba3a7eb06d add mechanism to add default kernel parameters during build
They are then automatically applied to all boot configurations
2021-12-18 21:55:15 +01:00
Francois Dupoux 39056fe54c Merge branch 'pacman-snapshot' into 'master'
Use snapshot archive repo for pacman in SystemRescue by default

Closes #237

See merge request systemrescue/systemrescue-sources!124
2021-12-18 13:05:35 +00:00
Marcos Mello f1132ca0e8 Remove archiso_shutdown mkinitcpio hook
It has been superseded by native mkinitcpio (since v16) solution:

- systemd-tmpfiles (via /usr/lib/tmpfiles.d/mkinitcpio.conf fragment) creates /run/initramfs directory during boot.
- Before shutdown, mkinitcpio-generate-shutdown-ramfs.service (enabled by default) populates /run/initramfs using sd-shutdown hook.

Albeit not strictly required, drop it from build.sh too.

See:

2fa0eb25d4
e785ee2cee
7123888493
2021-12-14 15:27:18 -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
Gerd v. Egidy 1b1e63c883 Build image based on defined repo snapshot date
The repo snapshot date is determined automatically by a query to the archive mirror.
You can also set a different snapshot date with the -s option.

Before always the current packages were used. Use defined snapshots instead,
because a future commit will switch pacman within the image to use the snapshot too.
2021-12-05 00:10:40 +01:00
Gerd v. Egidy 63723d5931 Customize /etc/os-release for SystemRescue
Without this patch /etc/os-release contains stock data from Arch Linux
that does not really fit SystemRescue.

Fixes #236
2021-12-02 12:33:26 +01:00
Manolis Stamatogiannakis 41083cecc0 Include any SystemRescueModules files present in srm directory in the produced iso. 2021-05-24 21:43:16 +02:00
Marcos Mello 2af06d4f7c Use correct mirrorlist for 32-bit version
Fixes systemrescue/systemrescue-sources#188
2021-04-22 17:01:36 -03:00
fdupoux 6642257dca Updated archlinux mirrorlist address 2021-01-09 08:58:31 +00:00
fdupoux e864193b24 Strip large binaries (#174) 2020-12-14 20:04:32 +00:00
fdupoux 97c1cee96b Added edk2-shell boot entry in UEFI boot menu (#159) 2020-10-19 21:57:08 +01:00
fdupoux f054fb65e3 Updated the ISO label 2020-09-28 08:06:00 +01:00
fdupoux 51574e9fed Revert original name when related to boot config 2020-09-13 20:51:08 +01:00
fdupoux a9a28c54d5 Update website address 2020-09-13 13:42:13 +01:00
fdupoux 31a6662e34 Change ISO image naming pattern 2020-09-12 17:13:53 +01:00
fdupoux 45d27a0be6 Rename project : SystemRescueCd ==> SystemRescue 2020-09-12 11:47:11 +01:00
fdupoux 6bd8322c34 Fix for ArchLinux bug FS#67411 2020-07-27 19:50:47 +01:00
Marcos Mello b1fe4911fd Reorder make_customize_airootfs() and make_setup_mkinitcpio() in build.sh
Also remove unnecessary commented lines.

No functional change.
2020-07-05 16:06:34 -03:00
fdupoux 9f5932de95 Run make_customize_airootfs() before make_setup_mkinitcpio() to fix #109 2020-05-25 09:26:38 +01:00
Francois Dupoux 63039626a6 Added new entry in boot menu to start from a Linux OS installed on the disk 2020-05-17 07:43:27 +00:00
fdupoux 15576d33af Automatically rename 64bit architecture in ISO file name 2020-04-13 13:50:48 +01:00
Marcos Mello b89e1ed94a Use rm -f when removing customize_airootfs.sh 2020-04-06 21:12:22 -03:00
Marcos Mello 3f3405049b Move hardcoded package list from build.sh to packages file 2020-04-06 15:49:14 -03:00
fdupoux fad6f9d360 Simplify support for multiple architectures 2020-03-07 16:46:09 +00:00
fdupoux 0fda814c99 Fix EFI boot on 32bit architecture 2020-03-07 09:12:28 +00: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
fdupoux cc9efa9f8b Add architecture to the name of the ISO image 2020-03-01 20:50:31 +00:00
Marcos Mello a90fbcbf6f Fix wrong directories/files ownership
Before:

$ ls -ln work/x86_64/airootfs/
total 0
drwxr-xr-x 1    0    0   0 fev 28 07:11 dev
drwxr-xr-x 1 1000 1000 184 fev 28 07:03 etc
drwxr-xr-x 1 1000 1000  22 fev 28 07:03 opt
dr-xr-xr-x 1    0    0   0 fev 28 07:11 proc
drwxr-xr-x 1 1000 1000 146 fev 28 07:03 root
drwxr-xr-x 1    0    0   0 fev 28 07:11 run
dr-xr-xr-x 1    0    0   0 fev 28 07:11 sys
drwxrwxrwt 1    0    0   0 fev 28 07:11 tmp
drwxr-xr-x 1 1000 1000   6 fev 28 07:03 usr
drwxr-xr-x 1    0    0  22 fev 28 07:11 var

After:

$ ls -ln work/x86_64/airootfs/
total 0
drwxr-xr-x 1 0 0   0 fev 28 07:33 dev
drwxr-xr-x 1 0 0 184 fev 28 07:38 etc
drwxr-xr-x 1 0 0  22 fev 28 07:33 opt
dr-xr-xr-x 1 0 0   0 fev 28 07:33 proc
drwxr-xr-x 1 0 0 146 fev 28 07:38 root
drwxr-xr-x 1 0 0   0 fev 28 07:33 run
dr-xr-xr-x 1 0 0   0 fev 28 07:33 sys
drwxrwxrwt 1 0 0   0 fev 28 07:33 tmp
drwxr-xr-x 1 0 0   6 fev 28 07:33 usr
drwxr-xr-x 1 0 0  22 fev 28 07:33 var

Fixes #73
2020-02-28 07:55:53 -03:00
fdupoux 043890b999 Parameterize architecture in build.sh 2020-02-01 14:28:39 +00:00
fdupoux bebf31af78 Optimize squashfs compression 2020-01-26 12:17:58 +00:00
fdupoux f06da5d529 Reverted original change in make_basefs() which was required to get the LTS version of the kernel 2019-12-29 20:37:35 +00:00
fdupoux f2ccb777d7 SystemRescueCd-6.0.2 2019-02-21 21:27:05 +00: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