mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-02-23 07:44:14 +01:00
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
This commit is contained in:
parent
91110958fe
commit
63723d5931
10
airootfs/etc/os-release
Normal file
10
airootfs/etc/os-release
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
NAME="SystemRescue"
|
||||
ID=sysrescue
|
||||
ID_LIKE=arch
|
||||
PRETTY_NAME="SystemRescue %ISO_VERSION%"
|
||||
VERSION="%ISO_VERSION%"
|
||||
VERSION_ID="%ISO_VERSION%"
|
||||
ANSI_COLOR="0;31"
|
||||
HOME_URL="https://www.system-rescue.org/"
|
||||
DOCUMENTATION_URL="https://www.system-rescue.org/manual/"
|
||||
BUG_REPORT_URL="https://gitlab.com/systemrescue/systemrescue-sources/-/issues"
|
||||
8
build.sh
8
build.sh
|
|
@ -106,6 +106,14 @@ make_customize_airootfs() {
|
|||
s|%ISO_ARCH%|${arch}|g;
|
||||
s|%INSTALL_DIR%|${install_dir}|g" \
|
||||
${script_path}/airootfs/etc/issue > ${work_dir}/${arch}/airootfs/etc/issue
|
||||
|
||||
# delete the target file first because it is a symlink
|
||||
rm -f ${work_dir}/${arch}/airootfs/etc/os-release
|
||||
sed "s|%ARCHISO_LABEL%|${iso_label}|g;
|
||||
s|%ISO_VERSION%|${iso_version}|g;
|
||||
s|%ISO_ARCH%|${arch}|g;
|
||||
s|%INSTALL_DIR%|${install_dir}|g" \
|
||||
${script_path}/airootfs/etc/os-release > ${work_dir}/${arch}/airootfs/etc/os-release
|
||||
|
||||
curl -o ${work_dir}/${arch}/airootfs/etc/pacman.d/mirrorlist "$mirrorlist_url"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue