Arch install script boots to emergency shell, not changing values...
Recently I made a post asking how to make an Arch Linux automated bash install script. So, I made my first one, it is very minimal and short for the sake of seeing if the base system works before adding more stuff to it.
It seems to me like it should reboot successfully without the live disc, but instead it boots to an emergency shell. I also checked the /etc/hosts file and it was not changed, neither was the hostname, and it didn't even uncomment "#en_US.UTF-8 UTF-8/" from /etc/locale.gen. I saw a perl error that the locale was not able to change for some reason. I've been working on it all day, trying it in a virtual machine and in my laptop, and still getting the same results. I tried someone else's install script which I based many of the lines from and it also booted to an emergency shell. At this point, I have given up trying to solve it myself and would appreciate some help trying to figure this out. Thank you.
It's my first bash script, so forgive me if it is either badly formatted or if this question is really dumb in itself.
https://github.com/inazurai/archdream
EDIT: Solved by elitismfails and ibbbk
Edited 12 Jul 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 43 · 96% up
- Kind
- Text
- ID
- obuptn
7 comments
Almost everything is being run in the live environment not the chroot. You need to be editing files in the /mnt directory after pacstrap, or as a separate script inside chroot
Thank you! can't believe I didn't catch that :P
It's no problem, I've been making my own personal one of these for my gaming setups. I believe it really stems from line 66 chroot, lines afterwards aren't run inside the chroot as appears to be assumed.
Quick example lines 70 to 92 of setup are changing host, passwords, creating a user.... In your temporary liveusb
I believe p3 is the root p2 is your swap
Yup, that was also a problem. Using grub instead now. It should work I hope, thank you for pointing that out
Deleted before we saved it.