Commit 9c1da12b authored by Guido Gunther's avatar Guido Gunther

root.sh: move apt setup to function

parent daae64fe
......@@ -187,12 +187,9 @@ function install_pkgs()
}
# create the directories so that this script can be tested without the generated filesystem
mkdir -p $basedir/etc/apt/apt.conf.d/
mkdir -p $basedir/etc/network
cat << EOF > $basedir/etc/apt/sources.list
function setup_apt()
{
cat << EOF > $basedir/etc/apt/sources.list
deb http://$mirror/debian $distro main contrib non-free
deb-src http://$mirror/debian $distro main contrib non-free
deb http://$mirror/debian $distro-updates main contrib non-free
......@@ -201,10 +198,17 @@ deb http://security.debian.org/debian-security $distro/updates main contrib non-
deb-src http://security.debian.org/debian-security $distro/updates main contrib non-free
EOF
cat << EOT > $basedir/etc/apt/apt.conf.d/71-no-recommends
cat << EOF > $basedir/etc/apt/apt.conf.d/71-no-recommends
APT::Install-Recommends "0";
APT::Install-Suggests "0";
EOT
EOF
}
# create the directories so that this script can be tested without the generated filesystem
mkdir -p $basedir/etc/apt/apt.conf.d/
mkdir -p $basedir/etc/network
echo "pureos" > $basedir/etc/hostname
......@@ -247,6 +251,7 @@ EOF
prepare_chroot
setup_qemu
setup_apt
install_pkgs
setup_kernel
setup_uboot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment