Skip to content

Commit

Permalink
uhubuild-prepare-chroot: az /etc/resolv.conf symlink és file is lehet
Browse files Browse the repository at this point in the history
  • Loading branch information
rezso committed Nov 11, 2017
1 parent a92038a commit 4e4fb80
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/uhubuild-prepare-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,18 @@ fi
# /etc/resolv.conf
if [ -f $UHUBUILD_CHROOTDIR/etc/resolv.conf ]; then
if ! grep "Generated by NetworkManager" $UHUBUILD_CHROOTDIR/etc/resolv.conf; then
cp -f $(readlink /etc/resolv.conf) $UHUBUILD_CHROOTDIR/etc/resolv.conf
if [ -L /etc/resolv.conf ]; then
cp -f $(readlink /etc/resolv.conf) $UHUBUILD_CHROOTDIR/etc/resolv.conf
else
cp -f /etc/resolv.conf $UHUBUILD_CHROOTDIR/etc/resolv.conf
fi
fi
else
cp -f $(readlink /etc/resolv.conf) $UHUBUILD_CHROOTDIR/etc/resolv.conf
if [ -L /etc/resolv.conf ]; then
cp -f $(readlink /etc/resolv.conf) $UHUBUILD_CHROOTDIR/etc/resolv.conf
else
cp -f /etc/resolv.conf $UHUBUILD_CHROOTDIR/etc/resolv.conf
fi
fi

# Takarítás.
Expand Down

0 comments on commit 4e4fb80

Please sign in to comment.