summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/restore-image.sh7
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
}