Browse Source

do update initramfs on first boot

Émile Morel 9 years ago
parent
commit
529e4f105d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      olinux/script/firstrun

+ 3 - 1
olinux/script/firstrun

@@ -34,7 +34,7 @@ case "$1" in
     echo ""
     rm -f /etc/ssh/ssh_host*
     dpkg-reconfigure openssh-server 
-    # do not resize if root is crypted 
+    # do not resize partition if root is crypted 
     /sbin/insserv -r firstrun
     if [ ! -e /etc/crypttab ]; then
       echo ""
@@ -49,6 +49,8 @@ case "$1" in
       echo "##################"
       echo ""
       /sbin/reboot
+    else
+      update-initramfs -u -k all
     fi
     ;;
   *)