Skip to content

Commit

Permalink
Move each file to it's own section
Browse files Browse the repository at this point in the history
  • Loading branch information
ClashTheBunny committed Apr 20, 2024
1 parent 400b144 commit 79dff60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ function base_bootstrap() {
# Make internet available from within the chroot, and setup fstab, hostname, and sources.list

$SUDO cp /etc/resolv.conf "${MOUNTPOINT}/etc/resolv.conf"

$SUDO rm "${MOUNTPOINT}/etc/fstab"
$SUDO rm "${MOUNTPOINT}/etc/hostname"
$SUDO rm "${MOUNTPOINT}/etc/apt/sources.list"
if [[ -v LOOPDEV ]]; then
ROOTUUID=$($SUDO blkid -s UUID -o export "${LOOPDEV}p2" | grep UUID)
BOOTUUID=$($SUDO blkid -s UUID -o export "${LOOPDEV}p1" | grep UUID)
Expand All @@ -77,8 +76,10 @@ function base_bootstrap() {
$BOOTUUID /boot vfat defaults,nofail 0 2
$ROOTUUID / ext4 defaults,noatime 0 1" | $SUDO tee -a "${MOUNTPOINT}/etc/fstab"

$SUDO rm "${MOUNTPOINT}/etc/hostname"
echo "debian-rpi64" | $SUDO tee "${MOUNTPOINT}/etc/hostname"

$SUDO rm "${MOUNTPOINT}/etc/apt/sources.list"
echo "deb http://deb.debian.org/debian/ ${RELEASE} main contrib non-free non-free-firmware
#deb-src http://deb.debian.org/debian/ ${RELEASE} main contrib non-free non-free-firmware " | $SUDO tee -a "${MOUNTPOINT}/etc/apt/sources.list"

Expand Down

0 comments on commit 79dff60

Please sign in to comment.