Skip to content
Snippets Groups Projects
Commit 120c951b authored by Valentin Bruch's avatar Valentin Bruch
Browse files

lip seed: use lsb-release for distribution code name

parent 65b3f043
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
source /root/etc/lsb-release
sed -i -e '/ubuntu\.com/d' -e '/^$/d' /root/etc/apt/sources.list sed -i -e '/ubuntu\.com/d' -e '/^$/d' /root/etc/apt/sources.list
sed -i -e 's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g' /root/usr/bin/apt-clone sed -i -e 's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g' /root/usr/bin/apt-clone
echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives eoan lip" >> /root/etc/apt/sources.list echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives ${DISTRIB_CODENAME} lip" >> /root/etc/apt/sources.list
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ eoan main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ ${DISTRIB_CODENAME} main restricted universe multiverse" >> /root/etc/apt/sources.list
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ eoan-security main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ ${DISTRIB_CODENAME}-security main restricted universe multiverse" >> /root/etc/apt/sources.list
echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ eoan-updates main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ ${DISTRIB_CODENAME}-updates main restricted universe multiverse" >> /root/etc/apt/sources.list
chroot /root /usr/bin/apt-get update chroot /root /usr/bin/apt-get update
chroot /root /usr/bin/apt-get -y install $(grep '^[^|#]*L[^|]*|' /root/isodevice/packages | cut -d'|' -f 2) chroot /root /usr/bin/apt-get -y install $(grep '^[^|#]*L[^|]*|' /root/isodevice/packages | cut -d'|' -f 2)
./root/isodevice/preseed/lipnsa.hook.sh ./root/isodevice/preseed/lipnsa.hook.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment