Skip to content

Commit

Permalink
cherry-pick 25c29cf
Browse files Browse the repository at this point in the history
  * fix issue #113: ignore ubiquity uninstallation
  • Loading branch information
Alex Tu committed Dec 24, 2020
1 parent 8a04685 commit 8d6168a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
dell-recovery (1.61~somerville9) bionic; urgency=medium

* cherry-pick 25c29cfde546de58d32192e5de11e197d6857e50
* fix issue #113: ignore ubiquity uninstallation

-- Alex Tu <[email protected]> Wed, 23 Dec 2020 13:59:21 +0800

dell-recovery (1.61~somerville8) bionic; urgency=medium

* Do not wake up network at stage 2 (issue #114).
Expand Down
2 changes: 1 addition & 1 deletion late/scripts/chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ if [ -f "$TARGET/tmp/apt-installed" ]; then
mv $TARGET/tmp/apt-installed $TARGET/var/lib/ubiquity/dell-apt
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
awk '{print $0}' $TARGET/var/lib/ubiquity/dell-apt $TARGET/var/lib/ubiquity/dell_installed | grep -v ubiquity |sort |uniq -u > $TARGET/var/lib/ubiquity/dell_uninstalled
fi

#check the checked_uninstalled file is empty or not, we will turn to FAIL-SCRIPT if it is not empty
Expand Down

0 comments on commit 8d6168a

Please sign in to comment.