Skip to content

Commit

Permalink
counting on dpkg --print-architecture to filter out architecture post…
Browse files Browse the repository at this point in the history
…fix from package name. (#47)

Signed-off-by: Alex Tu <[email protected]>
  • Loading branch information
Alex Tu authored and superm1 committed Oct 27, 2017
1 parent 956347a commit abc5d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion late/scripts/chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abc5d77

Please sign in to comment.