]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: fix grub.conf root uuid entry
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 13 Aug 2019 13:21:02 +0000 (15:21 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 13 Aug 2019 13:21:02 +0000 (15:21 +0200)
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 <arne_f@ipfire.org>
src/installer/main.c

index 849976542d0489301a9e0697a28d4f4ea1eb3194..34b89ae3d668925b94775866c4d374f982f09974 100644 (file)
@@ -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..."));