stage2: save cpe from /etc/os-release to .disk/cpe

See: https://bugzilla.altlinux.org/46271
This commit is contained in:
Anton Midyukov 2023-05-26 16:32:27 +07:00
parent c14f11414c
commit da3e0482e5

View File

@ -0,0 +1,10 @@
#!/bin/sh -ef
cd /.image
mkdir -p .disk
. /etc/os-release
[ -n "${CPE_NAME:-}" ] || exit 1
echo "${CPE_NAME:-}" > .disk/cpe