浏览代码

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