Преглед изворни кода

installer: after copying live image also generate a new initramfs.

Juan RP пре 11 година
родитељ
комит
dc08114bec
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      installer.sh.in

+ 2 - 0
installer.sh.in

@@ -762,6 +762,8 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
     . /etc/default/live.conf
     echo "Removing $USERNAME live user from targetdir ..." >$LOG
     chroot $TARGETDIR userdel -r $USERNAME >>$LOG 2>&1
+    echo "Rebuilding initramfs for target ..." >$LOG
+    chroot $TARGETDIR dracut --force >>$LOG 2>&1
 
     DIALOG --infobox "Applying installer settings..." 4 60