Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2018 Notes on creation of bootable USB stick for VOID installation.
- This will NOT create a full desktop environment, but could easily be modified to do so.
- ---------------------------------------------------------
- Apply GPT Partition table to USB stick. Add 200MB FAT32 partition, flagged as EFI/bootable in Gparted.
- Label partition as ESP?
- Add a second partition of at least 4GB formatted ext4, for the Void root.
- ### EDIT: Set ext4 WITHOUT JOURNALING, "mkfs.ext4 -O ^has_journal" or after creation, "tune2fs -O ^has_journal"
- # xbps-install -S os-prober efibootmgr
- # blkid # identify which device is the USB stick
- # mount /dev/{blkid name} /mnt
- # 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
- # mount --rbind --make-rslave /dev /mnt/dev
- # mount --rbind --make-rslave /proc /mnt/proc
- # mount --rbind --make-rslave /sys /mnt/sys
- # chroot /mnt
- ------------ Within Chroot ----------------
- # chsh -s /bin/bash
- # passwd root
- # chown root:root /
- # chmod 755 /
- # echo "USB-Void" > /etc/hostname
- # blkid # copy UUID for the USB flash drive
- # nano /etc/fstab # Set second partition to Void root
- UUID=(result from blkid) / ext4 defaults,noatime 0 1
- # echo en_US.UTF-8 UTF-8 >> /etc/default/libc-locales
- # xbps-reconfigure -f glibc-locales
- # echo hostonly=yes > /etc/dracut.conf.d/hostonly.conf
- # xbps-reconfigure -f linux*
- # ln -s /etc/sv/dhcpcd /var/service/
- # mkdir /boot/efi
- # mount /dev/{device name}1 /boot/efi # e.g. /dev/sde1 /boot/efi
- # grub-install --target x86_64-efi --removable --boot-directory=/boot --efi-directory=/boot/efi
- # grub-mkconfig -o /boot/grub/grub.cfg
- -------------------- end chroot ----------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement