tags 686531 patch thanks Attaching patch to fix this
-- Pierre Ynard
From 9f5efa15466ca52ca34f458e66ef153f7512059a Mon Sep 17 00:00:00 2001 From: Pierre Ynard <linkfa...@yahoo.fr> Date: Thu, 28 Feb 2019 19:51:26 +0100 Subject: [PATCH] Skip bootclean.sh on read-only directories (Closes: #686531) --- debian/src/initscripts/lib/init/bootclean.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/src/initscripts/lib/init/bootclean.sh b/debian/src/initscripts/lib/init/bootclean.sh index 03a593e..08096a4 100644 --- a/debian/src/initscripts/lib/init/bootclean.sh +++ b/debian/src/initscripts/lib/init/bootclean.sh @@ -60,6 +60,8 @@ clean_tmp() { # Does not exist [ -d /tmp ] || return 1 + # Read-only filesystem? + [ -w /tmp ] || return 0 # tmpfs does not require cleaning [ -f /tmp/.tmpfs ] && return 0 # Can clean? @@ -152,6 +154,8 @@ clean() { # Does not exist [ -d "$dir" ] || return 1 + # Read-only filesystem? + [ -w "$dir" ] || return 0 # tmpfs does not require cleaning [ -f "$dir/.tmpfs" ] && return 0 # Can clean? -- 2.1.4