#!/bin/sh set -e rootdir=$1 base=$(dirname $0) RELEASE=trusty cat > "$rootdir/root/pandora_install" << EOF #!/bin/bash DEBIAN_FRONTEND=noninteractive sed -i "s/main/main restricted universe multiverse/g" /etc/apt/sources.list.d/base.list apt-get update apt-get -y --force-yes dist-upgrade EOF cat "$base/pandora_install.sh" >> "$rootdir/root/pandora_install" #reset install proxy settings cat >> "$rootdir/root/pandora_install" < /etc/apt/sources.list.d/base.list < "$rootdir/etc/rc.local" <&1 | tee /root/pandora_install.log || true mv /root/pandora_install /root/pandora_installed shutdown -h now fi exit 0 EOF chmod +x "$rootdir/etc/rc.local"