02-12-2020, 05:58 AM
(02-12-2020, 05:14 AM)Solra Bizna Wrote: After running the installer, mount the root partition, chroot into it, do whatever apt commands you want, exit from the chroot, and unmount the root partition.
Something like this:
Code:mount /dev/mmcblk1p6 /mnt
chroot /mnt /bin/bash
apt install wpasupplicant network-manager
# (run any other commands you like here)
exit
umount /mnt
(make sure a given command succeeds before moving on to the next one)
There is also use the following to get a chroot shell: ./install-debian do_shell
Above approach is perfectly ok and often it won't make a difference which method you use. However do_shell will mount additional filesystems which allows you to run a wider set of commands to set things up and will also handle encrypted rootfs fairly smoothly.