#!/bin/bash # Note: relies on installation media being mounted on /media/usb CHROOT=$(mount | grep proc | grep calamares | awk '{print $3}' | sed -e "s#/proc##g") /bin/echo "#Hamara Desktop Installer" > $CHROOT/etc/apt/sources.list
/bin/echo "deb [trusted=yes] file:///media/installer namaste main" >> $CHROOT/etc/apt/sources.list
chroot $CHROOT /usr/bin/apt-get update exit 0