PN: systemd-bootconf-edf
PV: 1.00
PR: r0
PKGV: 1.00
PKGR: r0.0
LICENSE: MIT
DESCRIPTION: systemd-boot configuration files to be deployed to the ESP for use with EDF distro
SUMMARY: systemd-boot configuration files for booting with UEFI
RPROVIDES:systemd-bootconf-edf:  virtual-systemd-bootconf
SECTION: base
PKG:systemd-bootconf-edf: systemd-bootconf-edf
FILES:systemd-bootconf-edf: /boot/loader/loader.conf /boot/loader/entries/*.conf
FILES_INFO:systemd-bootconf-edf: {"/boot/loader/entries/edf-linux.conf": 155, "/boot/loader/entries/edf-xen.conf": 170, "/boot/loader/loader.conf": 143}
pkg_postinst:systemd-bootconf-edf: set -e\n    # Skip during rootfs creation so the copy runs only on the live target.\n    if [ -n "$D" ]; then\n        echo "systemd-bootconf-edf: skipping postinst during image build."\n        exit 0\n    fi\n\n    loader_dir="/boot/loader"\n    efi_dir="/efi"\n\n    if [ ! -d "$loader_dir" ]; then\n        echo "systemd-bootconf-edf: /boot/loader missing; skipping ESP sync."\n        exit 0\n    fi\n\n    if [ ! -d "$efi_dir" ]; then\n        echo "systemd-bootconf-edf: /efi not mounted; skipping ESP sync."\n        exit 0\n    fi\n\n    if ! grep -qs " ${efi_dir} " /proc/mounts; then\n        echo "systemd-bootconf-edf: /efi not mounted; skipping ESP sync."\n        exit 0\n    fi\n\n    dest_loader="${efi_dir}/loader"\n\n    rootfs_uuid=""\n    if [ -r /proc/cmdline ]; then\n        rootfs_uuid="$(sed -n 's/.*root=PARTUUID=\\([^ ]*\\).*/\\1/p' /proc/cmdline)"\n    fi\n\n    install -d "${dest_loader}/entries"\n\n    if [ -f "${loader_dir}/loader.conf" ]; then\n        install -m 0644 "${loader_dir}/loader.conf" "${dest_loader}/loader.conf"\n    fi\n\n    for entry in "${loader_dir}"/entries/*.conf; do\n        [ -f "$entry" ] || continue\n        dest_entry="${dest_loader}/entries/$(basename "$entry")"\n\n        uuid="${rootfs_uuid}"\n        if [ -z "$uuid" ] && [ -f "$dest_entry" ]; then\n            uuid="$(sed -n 's/.*root=PARTUUID=\\([^ ]*\\).*/\\1/p' "$dest_entry")"\n        fi\n\n        if [ -n "$uuid" ]; then\n            sed "s#@@ROOTFS_UUID@@#${uuid}#g" "$entry" > "$dest_entry"\n            chmod 0644 "$dest_entry"\n        else\n            echo "systemd-bootconf-edf: PARTUUID unavailable; keeping existing $(basename "$dest_entry")."\n        fi\n    done\n
PKGSIZE:systemd-bootconf-edf: 468
