[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH initramfs-tools 2/2] scripts/functions: Use shell to create stamp file instead of 'touch'



klibc-utils doesn't include touch and we don't really need it.

Closes: #783291
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 scripts/functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/functions b/scripts/functions
index 8c1bb1f..d4fb788 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -398,7 +398,7 @@ _checkfs_once()
 		log_warning_msg "File system check failed but did not detect errors"
 		sleep 5
 	else
-		touch $FSCK_STAMPFILE
+		> $FSCK_STAMPFILE
 	fi
 	return 0
 }
-- 
Ben Hutchings
Larkinson's Law: All laws are basically false.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: