From 2db6494a64320897e1e2cb85403df9decff62870 Mon Sep 17 00:00:00 2001 From: Tero Huttunen Date: Thu, 1 Oct 2026 19:50:41 +0300 Subject: [PATCH] fix login failure --- config/includes.chroot/usr/local/sbin/ep-eraser | 15 ++++++++++++++- config/package-lists/live.list.chroot | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/config/includes.chroot/usr/local/sbin/ep-eraser b/config/includes.chroot/usr/local/sbin/ep-eraser index 5eab841..96fa479 100644 --- a/config/includes.chroot/usr/local/sbin/ep-eraser +++ b/config/includes.chroot/usr/local/sbin/ep-eraser @@ -104,10 +104,23 @@ run_ep_eraser() { run_nwipe() { local report_dir=/var/log/ep-eraser/reports + local status mkdir -p /etc/nwipe mkdir -p "$report_dir" cd /etc/nwipe - nwipe --PDFreportpath="$report_dir" /dev/tty 2>&1 + trap ':' INT + if nwipe --PDFreportpath="$report_dir" /dev/tty 2>&1; then + status=0 + else + status=$? + fi + trap - INT + + if [ "$status" -eq 130 ]; then + printf '\nnwipe interrupted. Returning to the tool menu.\n' + elif [ "$status" -ne 0 ]; then + printf '\nnwipe exited with status %s. Returning to the tool menu.\n' "$status" + fi } main() { diff --git a/config/package-lists/live.list.chroot b/config/package-lists/live.list.chroot index ab91c73..03d4857 100644 --- a/config/package-lists/live.list.chroot +++ b/config/package-lists/live.list.chroot @@ -2,3 +2,4 @@ live-boot live-config live-config-systemd systemd-sysv +user-setup