You are not logged in.

#1 2018-07-25 05:14:50

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

[SOLVED] Smart way to enter UUID to esp/loader/entries/arch.conf

When i install Arch Linux and get to the bootloader (usually i use systemd-boot) and specify UUID on the options line.
I actually take a picture of my root partition's UUID with my phone and enter it manually along with the other lines

title   Arch Linux
linux   /vmlinuz-linux
initrd  /intel-ucode.img
initrd  /initramfs-linux.img
options root=UUID=12345-67890-1234-123456-7890 rw

How do you manage entering UUID or PARTUUID? Is there a smarter way to minimize the risk of typos? Like passing blkid entry for the root partition via some command or likewise?

Last edited by dockland (2018-07-25 05:38:58)


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#2 2018-07-25 05:29:31

Swayland
Member
Registered: 2018-06-28
Posts: 23

Re: [SOLVED] Smart way to enter UUID to esp/loader/entries/arch.conf

If you need the output of blkid so that you can write it to a file, consider appending the data using

blkid >> targetfile

and then firing up an editor like vim to modify the file for your needs. (I'm not sure if you can use the system clipboard from a tty)

Offline

#3 2018-07-25 05:38:21

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: [SOLVED] Smart way to enter UUID to esp/loader/entries/arch.conf

Thank you, that is a smart,quick and safe way.


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#4 2018-07-25 06:26:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Smart way to enter UUID to esp/loader/entries/arch.conf

From my bash_history during my last install:

blkid | awk '/sdb2/' >> /boot/loader/entries/backup.conf

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-07-25 07:45:11

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [SOLVED] Smart way to enter UUID to esp/loader/entries/arch.conf

shell:  lsblk -no UUID /dev/sdb2
vi(m):  :r! lsblk -no UUID /dev/sdb2

edit: could even do -Po

edit2: if the partition is mounted then you could use findmnt to remove one additional source of potentional confusion.

Last edited by Mr.Elendig (2018-07-25 07:50:56)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2018-07-25 15:31:25

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Smart way to enter UUID to esp/loader/entries/arch.conf

I just use copy and paste in my terminal window - but then again all of my installs that aren't scripted are done over ssh smile


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB