mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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 <arne_f@ipfire.org>
This commit is contained in:
@@ -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..."));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user