Commit 85e0feff authored by Lennart Klebl's avatar Lennart Klebl

2004 branch, $workspace can be set w/ env

parent 3761229d
......@@ -3,11 +3,12 @@
set -e
set -x
# TODO update image file names
image_size="7G"
kubuntu="kubuntu-19.10-beta-desktop-amd64.iso"
xubuntu="xubuntu-19.10-beta-desktop-amd64.iso"
old_buntu="xubuntu-18.04.3-desktop-amd64.iso"
workspace="/workspace"
kubuntu="focal-desktop-amd64.iso"
xubuntu="focal-desktop-amd64.iso"
old_buntu="$kubuntu"
: ${workspace:="/workspace"}
# mtools, ddrescure, fdisk, grub, 7z
rm -rf "$workspace/part_files"
......@@ -33,9 +34,10 @@ cp grub_template.cfg "$workspace/part_files/boot/grub/grub.cfg"
fill_grub_config_template "$kubuntu" "KDE" "$workspace/part_files/boot/grub/grub.cfg"
fill_grub_config_template "$xubuntu" "XFCE" "$workspace/part_files/boot/grub/grub.cfg"
wget -nc -P "$workspace/part_files/" https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/linux-headers-5.4.0-999_5.4.0-999.201910082202_all.deb
wget -nc -P "$workspace/part_files/" https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/linux-image-unsigned-5.4.0-999-generic_5.4.0-999.201910082202_amd64.deb
wget -nc -P "$workspace/part_files/" https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/linux-modules-5.4.0-999-generic_5.4.0-999.201910082202_amd64.deb
# TODO update kernel urls
wget -nc -P "$workspace/part_files/" "https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6-rc4/linux-headers-5.6.0-050600rc4-generic_5.6.0-050600rc4.202003012332_amd64.deb"
wget -nc -P "$workspace/part_files/" "https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6-rc4/linux-image-unsigned-5.6.0-050600rc4-generic_5.6.0-050600rc4.202003012332_amd64.deb"
wget -nc -P "$workspace/part_files/" "https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6-rc4/linux-modules-5.6.0-050600rc4-generic_5.6.0-050600rc4.202003012332_amd64.deb"
./create_offlinerepo.sh "$workspace/part_files/archives" "$kubuntu" $(grep '^[^#]' packages | cut -d'|' -f 2)
./create_offlinerepo.sh "$workspace/part_files/archives" "$xubuntu" $(grep '^[^#]' packages | cut -d'|' -f 2)
cp packages "$workspace/part_files/packages"
......
......@@ -16,7 +16,7 @@ iso_file="$1"
shift || usage
packages="$@"
workspace="/workspace"
: ${workspace:="/workspace"}
APT_SOURCE_URL_OVERRIDE="http://ftp.halifax.rwth-aachen.de/ubuntu/"
rm -rf "$workspace"/offlinerepo
......
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