feat: add distro compatibility check for system restore process
This commit is contained in:
parent
11d375b38b
commit
67109343ef
3 changed files with 37 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue