tdrop a file to signal complete bootstrap - libdevuansdk - common library for devuan's simple distro kits
HTML git clone https://git.parazyd.org/libdevuansdk
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit bdb94f314fc8062d46c0d4fe767d0cab0989f4c2
DIR parent dd6f741ed6a53957320421c5c7f61f1400be849d
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 8 Jun 2016 21:59:01 +0200
drop a file to signal complete bootstrap
Diffstat:
M zlibs/debootstrap | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
DIR diff --git a/zlibs/debootstrap b/zlibs/debootstrap
t@@ -88,6 +88,9 @@ rm -f /thirdstage.sh
rm -f /etc/ssh/*key
rm -f /etc/ssh/*.pub
rm -f /root/.bash_history
+
+# our file for which we check the bootstrap is complete
+touch .done
EOF
}
t@@ -162,8 +165,7 @@ bootstrap_tar_unpack() {
req=(unpath bootstrap_tgz)
ckreq || return 1
- # TODO: hack, drop a real file at one point to note it's the actual thing
- [[ -r ${unpath}/bin/bash ]] && {
+ [[ -f ${unpath}/.done ]] && {
warning "bootstrap already unpacked in ::1 dir::" $unpath
return 1
}