Advertisement
sxiii

Chroot to ArchLinux and add SD-LVM2 support

Apr 1st, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.82 KB | None | 0 0
  1. # You will need this if you forgot to add LVM2 on systemd LVM arch/manjaro installation
  2. # My own installation chroot procedure for Manjaro/Arch Linux. Replace UUIDs according to yours.
  3. sudo mount -U 9d2ece4c-ec48-42a3-b4b1-25725d79d574 /mnt
  4. sudo mount -U e66d4d27-5b78-4057-9c1b-7b12025e42ab /mnt/boot
  5. cd /mnt
  6. sudo mount -t proc proc proc/
  7. sudo mount --rbind /sys sys/
  8. sudo mount --rbind /dev dev/
  9. sudo mount --rbind /run run/
  10. sudo cp /etc/resolv.conf etc/resolv.conf
  11. sudo chroot /mnt /bin/bash
  12. # Here I should fix the lvm2 (sd-lvm2) hook at mkinitcpio and recreate the image:
  13. # Edit mkinitcpio to add "lvm2" or "sd-lvm2" hook if using systemd
  14. sudo nano /etc/mkinitcpio.conf
  15. # Add lvm2 word after "resume" in HOOKS= row
  16. # Close the file
  17. sudo mkinitcpio -p linux41
  18. # Your system should boot now. I hope so... Good luck.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement