Skip to content
......@@ -495,7 +495,7 @@ if [ -f /etc/debian_version ] ; then
else
MASTERDEBS=""
fi
$UP2DATE || ( sudo cp --preserve=mode,timestamps -r hosts/$HOSTNAME/etc/apt/sources.list /etc/apt ; sudo apt-get update )
$UP2DATE || sudo apt-get update
$UP2DATE || sudo apt-get install $DEBS $MASTERDEBS
# dont (re-)install pbuilder if it's on hold
if [ "$(dpkg-query -W -f='${db:Status-Abbrev}\n' pbuilder)" != "hi " ] ; then
......@@ -555,7 +555,7 @@ for h in common common-amd64 common-i386 common-arm64 common-armhf "$HOSTNAME" ;
fi
for d in etc usr ; do
if [ -d "hosts/$h/$d" ]; then
sudo cp --preserve=mode,timestamps -r "hosts/$h/$d/"* "/$d" || true # YOLO or better use src:fai's fcopy
sudo cp --preserve=mode,timestamps -r "hosts/$h/$d/"* "/$d"
fi
done
done
......