diff options
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 8eb564284..bf7a04215 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -191,6 +191,13 @@ function expand_fs() if [ -d "$grub_dir" ]; then echo "(hd0) $disk" > "$grub_dir/device.map" fi + if [ -n "$MKINITRD" ]; then + mount -t sysfs none "$mnt_dir/sys" + mount -t proc none "$mnt_dir/proc" + chroot $mnt_dir bootloader-config --action rebuild-initrds + umount "$mnt_dir/sys" + umount "$mnt_dir/proc" + fi umount $mnt_dir fi } |