Files
mesh-catalog/modules/kernel/files/mesh-kernel-initramfs.service
T
jschoubben f7616c6a9b
mesh/delivery merged: source.main moved to novox/mesh-catalog@b9abfde492b2
mesh/check checking f7616c6a9bd4 on b9abfde492b2
kernel: the initramfs script takes over a default-config preset and checks each image (issue 1977, L7-L9)
Before mkinitcpio -P, a preset naming ALL_config="/etc/mkinitcpio.conf" is copied to the state's
taken-over/ and loses that line (another ALL_config is left and named); after it, an image without
kernel/x86/microcode/ in its first 64 KiB fails the unit and records nothing. The unit may write
/etc/mkinitcpio.d. The README names no node. Tests: 1977/AC7, 1977/AC8; AC3/AC4 fixtures write images.

Builds: L7, L8, L9 (issue 1977 note 4)
2026-11-12 21:31:05 +01:00

23 lines
727 B
Desktop File

[Unit]
Description=The initramfs images with the CPU's current microcode
# Module kernel, novox/hq issue 1977. Starting this unit builds the images again when the microcode drop-in
# changed since they were last built; a failed mkinitcpio fails the unit. The microcode packages are declared
# before this unit.
After=local-fs.target
Wants=local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=${dir:state}/initramfs apply
# It writes the boot partition, the presets and its own state; mkinitcpio keeps its work in a private /tmp.
ProtectSystem=strict
ReadWritePaths=/boot /etc/mkinitcpio.d ${dir:state}
PrivateTmp=yes
ProtectHome=yes
PrivateNetwork=yes
NoNewPrivileges=yes
[Install]
WantedBy=multi-user.target