diff --git a/late/scripts/chroot.sh b/late/scripts/chroot.sh index 31153f56..2fd441bd 100755 --- a/late/scripts/chroot.sh +++ b/late/scripts/chroot.sh @@ -146,7 +146,7 @@ fi #check the packages installed or not if [ -f "$TARGET/tmp/apt-installed" ]; then mv $TARGET/tmp/apt-installed $TARGET/var/lib/ubiquity/dell-apt - sed 's/:amd64//g' $TARGET/var/lib/ubiquity/installed-packages > $TARGET/var/lib/ubiquity/installed-packages-filtered + sed "s/:$(dpkg --print-architecture)//g" $TARGET/var/lib/ubiquity/installed-packages > $TARGET/var/lib/ubiquity/installed-packages-filtered grep -x -f $TARGET/var/lib/ubiquity/dell-apt $TARGET/var/lib/ubiquity/installed-packages-filtered > $TARGET/var/lib/ubiquity/dell_installed awk '{print $0}' $TARGET/var/lib/ubiquity/dell-apt $TARGET/var/lib/ubiquity/dell_installed |sort |uniq -u > $TARGET/var/lib/ubiquity/dell_uninstalled fi