Advertisement
furryfixer

Void USB Install

Nov 21st, 2021 (edited)
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. 2018 Notes on creation of bootable USB stick for VOID installation.
  2.  
  3. This will NOT create a full desktop environment, but could easily be modified to do so.
  4. ---------------------------------------------------------
  5.  
  6. Apply GPT Partition table to USB stick. Add 200MB FAT32 partition, flagged as EFI/bootable in Gparted.
  7. Label partition as ESP?
  8.  
  9. Add a second partition of at least 4GB formatted ext4, for the Void root.
  10. ### EDIT: Set ext4 WITHOUT JOURNALING, "mkfs.ext4 -O ^has_journal" or after creation, "tune2fs -O ^has_journal"
  11. # xbps-install -S os-prober efibootmgr
  12. # blkid # identify which device is the USB stick
  13. # mount /dev/{blkid name} /mnt
  14. # xbps-install -S -R https://alpha.de.repo.voidlinux.org/current -r /mnt base-system base-devel grub linux-firmware nano grub-x86_64-efi ntfs-3g dosfstools intel-ucode rsyslog
  15.  
  16. # mount --rbind --make-rslave /dev /mnt/dev
  17. # mount --rbind --make-rslave /proc /mnt/proc
  18. # mount --rbind --make-rslave /sys /mnt/sys
  19. # chroot /mnt
  20.  
  21. ------------ Within Chroot ----------------
  22. # chsh -s /bin/bash
  23. # passwd root
  24. # chown root:root /
  25. # chmod 755 /
  26. # echo "USB-Void" > /etc/hostname
  27. # blkid # copy UUID for the USB flash drive
  28. # nano /etc/fstab # Set second partition to Void root
  29. UUID=(result from blkid) / ext4 defaults,noatime 0 1
  30. # echo en_US.UTF-8 UTF-8 >> /etc/default/libc-locales
  31. # xbps-reconfigure -f glibc-locales
  32. # echo hostonly=yes > /etc/dracut.conf.d/hostonly.conf
  33. # xbps-reconfigure -f linux*
  34. # ln -s /etc/sv/dhcpcd /var/service/
  35.  
  36. # mkdir /boot/efi
  37. # mount /dev/{device name}1 /boot/efi # e.g. /dev/sde1 /boot/efi
  38. # grub-install --target x86_64-efi --removable --boot-directory=/boot --efi-directory=/boot/efi
  39. # grub-mkconfig -o /boot/grub/grub.cfg
  40. -------------------- end chroot ----------------------
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement