From fa8b3ea7d3c45ab4577f8cb920944fbf63586caa Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 13 Aug 2019 15:21:02 +0200 Subject: [PATCH] installer: fix grub.conf root uuid entry grub-mkconfig has written the device name instead of uuid's because the /dev/disk-by-uuid node of the new filesystem was missing run "udevadm trigger" to create this nodes before install grub. fixes: #12116 Signed-off-by: Arne Fitzenreiter --- src/installer/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/installer/main.c b/src/installer/main.c index 849976542d..34b89ae3d6 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -806,6 +806,13 @@ int main(int argc, char *argv[]) { goto EXIT; } + /* trigger udev to add disk-by-uuid entries */ + snprintf(commandstring, STRING_SIZE, "/usr/sbin/chroot /harddisk /sbin/udevadm trigger"); + if (runcommandwithstatus(commandstring, title, _("Trigger udev to redetect partitions..."), logfile)) { + errorbox(_("Error triggering udev to redetect partitions.")); + goto EXIT; + } + // Installing bootloader... statuswindow(60, 4, title, _("Installing the bootloader...")); -- 2.39.5