Skip to content

Commit

Permalink
use fcopy for sources.list if it's not a file
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Apr 30, 2015
1 parent ed4e9db commit 09421ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bin/fai-make-nfsroot
Expand Up @@ -381,8 +381,13 @@ EOF
echo "omit_dracutmodules+=systemd" > $NFSROOT/etc/dracut.conf.d/12-no-systemd.conf
echo "add_dracutmodules+=dmsquash-live" > $NFSROOT/etc/dracut.conf.d/13-add-cd-support.conf

# this copies sources.list into the nfsroot
cp -La $cfdir/apt $NFSROOT/etc
local fname=$(readlink -f $cfdir/apt/sources.list)
if [ -d $fname ]; then
fcopy -s $cfdir/apt -t $NFSROOT/etc/apt sources.list
else
# this copies sources.list into the nfsroot
cp -La $cfdir/apt $NFSROOT/etc
fi

add_etc_hosts_entries

Expand Down

0 comments on commit 09421ed

Please sign in to comment.