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

This commit is contained in:
Juan RP 2013-08-22 16:14:57 +02:00
parent c193f1ce75
commit dc08114bec
1 changed files with 2 additions and 0 deletions

View File

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