Skip to content

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.

43 points7 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
43 · 96% up
Kind
Text
ID
obuptn

Author

8
posts
26
comments
5
media
View profile

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

20 points

Thank you! can't believe I didn't catch that :P

11 points

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.

4 points

Quick example lines 70 to 92 of setup are changing host, passwords, creating a user.... In your temporary liveusb

2 points

options root=${DISK}p2 rw

I believe p3 is the root p2 is your swap

4 points

Yup, that was also a problem. Using grub instead now. It should work I hope, thank you for pointing that out

4 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.