From 45c84c281a013d3eea7ae29e14b42e1ca3afcde3 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Wed, 29 Dec 2021 04:57:03 +0100 Subject: [PATCH] fix: Exit when pivot_root fails --- infect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infect.sh b/infect.sh index b0e54f8..1f8524b 100755 --- a/infect.sh +++ b/infect.sh @@ -55,7 +55,7 @@ mount -t proc proc proc cp /etc/resolv.conf etc/resolv.conf echo ' -pivot_root . old_root +pivot_root . old_root || exit 1 rm second_stage.sh apk add alpine-base util-linux-misc syslinux gdb procps