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

Bug#783291: /bin/touch is missing if built with BUSYBOX=n



Control: tags -1 + patch

Am 25.04.2015 um 14:21 schrieb Michael Biebl:
> 
> Maybe it could replace the following  line in
> /usr/share/initramfs-tools/scripts/functions:
> 
> touch $FSCK_STAMPFILE
> 
> with
> 
> :> $FSCK_STAMPFILE
> 
> This will work, even when built with busybox.

The attached patch should fix this particular issue of flag files not
being created if busybox support (and therefor /bin/touch) is missing.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/scripts/functions b/scripts/functions
index 8c1bb1f..133eac7 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
 }

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: