installer: use an infobox when copying live image to target; misc tweaks.
This commit is contained in:
parent
78c31161df
commit
0fbbcbd740
@ -708,9 +708,9 @@ umount_filesystems() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
copy_rootfs() {
|
copy_rootfs() {
|
||||||
LANG=C cp -axvn / $TARGETDIR 2>&1 | \
|
DIALOG --title "Check /dev/tty7 for details" \
|
||||||
DIALOG --title "Copyring live image to target rootfs ..." \
|
--infobox "Copyring live image to target rootfs, please wait ..." 4 60
|
||||||
--programbox 24 80
|
LANG=C cp -axvn / $TARGETDIR >$LOG 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
DIE 1
|
DIE 1
|
||||||
fi
|
fi
|
||||||
@ -776,12 +776,14 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
|
|||||||
# Remove live user.
|
# Remove live user.
|
||||||
. /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
|
||||||
DIALOG --infobox "Rebuilding initramfs for target ..." 4 60
|
DIALOG --title "Check /dev/tty7 for details" \
|
||||||
|
--infobox "Rebuilding initramfs for target ..." 4 60
|
||||||
echo "Rebuilding initramfs for target ..." >$LOG
|
echo "Rebuilding initramfs for target ..." >$LOG
|
||||||
chroot $TARGETDIR dracut --force >>$LOG 2>&1
|
chroot $TARGETDIR dracut --force >>$LOG 2>&1
|
||||||
DIALOG --infobox "Removing temporary packages from target ..." 4 60
|
DIALOG --title "Check /dev/tty7 for details" \
|
||||||
echo "Removing unused packages from target ..." >$LOG
|
--infobox "Removing temporary packages from target ..." 4 60
|
||||||
|
echo "Removing temporaray packages from target ..." >$LOG
|
||||||
xbps-remove -r $TARGETDIR -Ry dialog f2fs-tools >>$LOG 2>&1
|
xbps-remove -r $TARGETDIR -Ry dialog f2fs-tools >>$LOG 2>&1
|
||||||
rmdir $TARGETDIR/mnt/target
|
rmdir $TARGETDIR/mnt/target
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user