Commit graph

5 commits

Author SHA1 Message Date
Roland Schwarzkopf f3ee66b9e5 cowpacman2srm fix - check if directory exists before searching unit files 2022-12-15 10:46:21 +01:00
fdupoux c2392e7516 Use sub-command in cowpacman2srm to specify whether to do prepare or create 2020-11-09 20:33:58 +00:00
Gerd v. Egidy c6352d8e8b add prepare mode to cowpacman2srm script
-p: prepare mode. Only prepares a directory with all files that would go into the SRM,
    but does not run mksquashfs. This allows further modifications by the user.
    In prepare mode the target file parameter is ignored.
2020-11-08 19:52:17 +01:00
Gerd v. Egidy c1ab9675c5 small runtime improvement to the cowpacman2srm script
This prevents trying to create the directories twice by removing duplicate
entries from the file list. Saves about 3 seconds of runtime when testing
with the "atom" package.
2020-11-08 19:26:15 +01:00
Gerd v. Egidy 3b2eaf953b Add cowpacman2srm script
Create SystemRescueModules (SRM) from pacman packages installed into the COW space

This script is meant to help creating SystemRescueModules (SRM) for SystemRescue.
More info about SRMs and this script can be found at:
https://www.system-rescue.org/Modules/

To use first install all packages you want to have in your SRM with pacman.
Default COW (Copy-On-Write) space is a ramdisk, so you usually don't have to do anything
special except provide enough RAM.
You can also enable any systemd services that are in these packages.

Then call:
cowpacman2srm [-c compalg] [-l complevel] targetfile.srm

Copy the .srm file to archisobasedir (default: "sysresccd") on your boot disk
and add the "loadsrm" boot parameter to SystemRescue.

There is no mechanism to check if a SRM is compatible with the version of SystemRescue
you are trying to run it with. So it is higly recommended to only use this script on
the exact version of SystemRescue you plan to use the SRM with.
2020-11-08 15:29:40 +01:00