sources-installtime 381 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/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