diff --git a/includes/etc/initramfs-tools/scripts/oginit b/includes/etc/initramfs-tools/scripts/oginit index 95efe28..0bbae9b 100755 --- a/includes/etc/initramfs-tools/scripts/oginit +++ b/includes/etc/initramfs-tools/scripts/oginit @@ -85,7 +85,10 @@ mountroot () ogYesNo --timeout 5 --default no "Stop before check updating initrd: y/N " [ $? == 0 ] && sh || echo " " fi - [ "$ogupdateinitrd" == "true" ] && ogUpdateInitrd + # Actualizar Initrd si se solicita o si no se corresponde con su kernel. + if [ "$ogupdateinitrd" == "true" -o ! -d /lib/modules/$(uname -r) ]; then + ogUpdateInitrd + fi [ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before connect and merging the rootfs -ogLive- with $OGSERVERLIVE: y/N " [ $? == 0 ] && sh || echo " "