From 2243825acf8c6bef763ec79fdc502aa7f713200c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 30 Nov 2014 08:47:00 +0100 Subject: g-i: do not run chroot dpkg -l on non-Linux installs --- bin/g-i-installation.sh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'bin/g-i-installation.sh') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index de808dcf..37e56a46 100644 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -1211,19 +1211,25 @@ save_logs() { # # get list of installed packages # - sudo chroot $SYSTEM_MNT dpkg -l > $RESULTS/dpkg-l || { echo "Warning: cannot run dpkg inside the installed system, did the installation finish correctly?" ; export FAILURE=true ; } - # - # check for must installed packages - # case $NAME in - *_brltty) - grep brltty $RESULTS/dpkg-l || { echo "Warning: package brltty not installed." ; export FAILURE=true ; } - ;; - *_speakup) - grep epeakup $RESULTS/dpkg-l || { echo "Warning: package espeakup not installed." ; export FAILURE=true ; } + *_kfreebsd*|*_hurd*) ;; *) - ;; + sudo chroot $SYSTEM_MNT dpkg -l > $RESULTS/dpkg-l || { echo "Warning: cannot run dpkg inside the installed system, did the installation finish correctly?" ; export FAILURE=true ; } + # + # check for must installed packages + # + case $NAME in + *_brltty) + grep brltty $RESULTS/dpkg-l || { echo "Warning: package brltty not installed." ; export FAILURE=true ; } + ;; + *_speakup) + grep epeakup $RESULTS/dpkg-l || { echo "Warning: package espeakup not installed." ; export FAILURE=true ; } + ;; + *) + ;; + esac + ;; esac # -- cgit v1.2.3-54-g00ecf