Persistent device name for root filesystem

1 post / 0 new
#1 Sat, 2016-08-13 19:31
10101
  • 10101's picture
  • Offline
  • Last seen: 1 year 5 months ago
  • Joined: 2016-08-13

Anyone know how boot with a UUID as the partition identifier, via kernel parameters? Here's my syslinux config:

timeout 1
prompt 1
default alpine
label alpine
  kernel /boot/vmlinuz-grsec
  append initrd=/boot/initramfs-grsec root=PARTUUID=51951295-434a-41b1-ad3b-cb1cbf49afb8 modules=ext4 quiet

I'm getting:

mount: mounting PARTUUID=51951295-434a-41b1-ad3b-cb1cbf49afb8 on /sysroot failed: No such file or directory
Mounting root failed.

I suspect it's because the default initramfs isn't using udev (although I have eudev installed.) I just thought I'd ask here before I start looking into writing a mkinitfs "hook" that runs and sets up udev so the UUID block device is available to be mounted.