Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto detect boot device not working - throws an error #208

Closed
fseatonuc opened this issue Mar 25, 2022 · 5 comments
Closed

auto detect boot device not working - throws an error #208

fseatonuc opened this issue Mar 25, 2022 · 5 comments

Comments

@fseatonuc
Copy link

We have a machine that detects the USB boot media as /dev/sda1 and the internal drive as /dev/nvme0n1 so we tried using 'DEVICE="auto"' and your new code for supporting that isn't working. Throws the following error:

alis.sh: line 97: MOUNTPOINT: command not found

I'm working remotely so I didn't get to debug the issue further.

@picodotdev
Copy link
Owner

picodotdev commented Mar 25, 2022

Can you post these lsblk commands output?

lsblk
lsblk -oMOUNTPOINT,PKNAME -P -M

@fseatonuc
Copy link
Author

fseatonuc commented Mar 28, 2022

Note - the system is up an running (i.e., these are not the output from the boot prompt on the installer disk.). Let me know if you need me to boot from that and repeat the commands.

# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    1  15.1G  0 disk 
├─sda1        8:1    1   776M  0 part 
└─sda2        8:2    1    74M  0 part 
sr0          11:0    1  1024M  0 rom  
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   511M  0 part /boot
└─nvme0n1p2 259:2    0   238G  0 part 
  └─vg-root 254:0    0   238G  0 lvm  /

# lsblk -oMOUNTPOINT,PKNAME -P -M
MOUNTPOINT="" PKNAME=""
MOUNTPOINT="" PKNAME="sda"
MOUNTPOINT="" PKNAME="sda"
MOUNTPOINT="" PKNAME=""
MOUNTPOINT="" PKNAME=""
MOUNTPOINT="/boot" PKNAME="nvme0n1"
MOUNTPOINT="" PKNAME="nvme0n1"
MOUNTPOINT="/" PKNAME="nvme0n1p2"

@picodotdev
Copy link
Owner

Yes, please, provide the commands output from the boot prompt on the installer disk.

@fseatonuc
Copy link
Author

Output from booting from the installer disk:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0 701.3M  1 loop /run/archiso/airootfs
sda           8:0    1  15.1G  0 disk 
├─sda1        8:1    1   776M  0 part /run/archiso/bootmnt
└─sda2        8:2    1    74M  0 part 
sr0          11:0    1  1024M  0 rom  
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   511M  0 part 
└─nvme0n1p2 259:2    0   238G  0 part 
  └─vg-root 254:0    0   238G  0 lvm  

MOUNTPOINT="/run/archiso/airootfs" PKNAME=""
MOUNTPOINT="" PKNAME=""
MOUNTPOINT="/run/archiso/bootmnt" PKNAME="sda"
MOUNTPOINT="" PKNAME="sda"
MOUNTPOINT="" PKNAME=""
MOUNTPOINT="" PKNAME=""
MOUNTPOINT="" PKNAME="nvme0n1"
MOUNTPOINT="" PKNAME="nvme0n1"
MOUNTPOINT="" PKNAME="nvme0n1p2"

@picodotdev
Copy link
Owner

Thanks for the feedback.

I tested a small script with your output and the command was working for me. But anyway I changed the command to do this task, maybe now works for you, if not comment me again please.

63575c4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants