X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=faiserver-setup;h=a48a00c43def737cfe45334657991c0f00ad670b;hb=a030c6b0d89340212d3c04023dcd1fe2a52d31d1;hp=96485a5634ea1c34db1210207107124517ecb51c;hpb=1b26da151c100d0c58910228d24ee52297da3974;p=automated-distro-installer diff --git a/faiserver-setup b/faiserver-setup index 96485a5..a48a00c 100755 --- a/faiserver-setup +++ b/faiserver-setup @@ -52,6 +52,22 @@ fi # for debian: + +apt-get update +# all the dependencies except the dhcp server +deps="$(apt-cache show fai-quickstart | grep ^Depends: |head -n 1|\ + sed -r 's/^Depends:|,|\|[^,]+|isc-dhcp-server//g')" +to_install=(tar) +for pkg in $deps; do + dpkg -s $pkg &>/dev/null && continue ||: + to_install+=($pkg) + # just so we have a record. + echo `date` $pkg >>/var/log/fai-manually-installed-packages.log +done +if [[ $to_install ]]; then + apt-get -y install ${to_install[@]} +fi + r=http://http.us.debian.org/debian # like default, but scrap httpredir, and nonfree. # All my systems should be able to get along without nonfree @@ -78,21 +94,6 @@ Pin-Priority: 500 EOF fi -apt-get update -# all the dependencies except the dhcp server -deps="$(apt-cache show fai-quickstart | grep ^Depends: |head -n 1|\ - sed -r 's/^Depends:|,|\|[^,]+|isc-dhcp-server//g')" -to_install=(tar) -for pkg in $deps; do - dpkg -s $pkg &>/dev/null && continue ||: - to_install+=($pkg) - # just so we have a record. - echo `date` $pkg >>/var/log/fai-manually-installed-packages.log -done -if [[ $to_install ]]; then - apt-get -y install ${to_install[@]} -fi - # tried out a stretch base, doesn't work yet. $sed -f - /etc/fai/nfsroot.conf <