feat: add distro compatibility check for system restore process

This commit is contained in:
kake26 2025-05-10 21:29:00 -05:00
parent 11d375b38b
commit 67109343ef
Signed by: kake26
GPG key ID: E0A989B571D1F99F
3 changed files with 37 additions and 1 deletions

View file

@ -69,6 +69,10 @@ function copy_config() {
if [ -f ./exclusions ]; then
cp ./exclusions $tmpdir
fi
# Save distro info
. /etc/os-release
echo "DISTRO_ID=$ID" > $tmpdir/distro_info
echo "DISTRO_VERSION=$VERSION_ID" >> $tmpdir/distro_info
if [ "$osp" = "Debian" ]; then
dpkg --get-selections > $tmpdir/installed_packages
cp ./restore.deb.bash $tmpdir/restore.bash