commit 5bf8a3a10ce397dd3ef13f71600794b2194ec7ca
parent 7edf6ca1dcdbaa3b830e48fbba2cea117f5a6bff
Author: parazyd <parazyd@dyne.org>
Date: Thu, 21 Apr 2016 18:06:49 +0200
more variables for zuper debugging
Diffstat:
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/arm/init-arm b/arm/init-arm
@@ -46,7 +46,7 @@ init() {
common="$R/arm/profiles/common-${os}"
[[ -f $common ]] || { error "No valid distro specified"; return 1 }
- [[-f $arm_build_device ]] || { error "No valid device specified"; return 1 }
+ [[ -f $arm_build_device ]] || { error "No valid device specified"; return 1 }
source ${arm_build_device}
}
diff --git a/arm/profiles/common-devuan b/arm/profiles/common-devuan
@@ -249,7 +249,7 @@ ${device_name}-thirdstage() {
sudo -E mount -o bind /dev/pts ${strapdir}/dev/pts && notice "Mounted dev/pts..."
notice "Chrooting..."
- LANG=C sudo -E chroot $strapdir /third-stage
+ LANG=C sudo -E chroot ${strapdir} /third-stage
[[ $? = 0 ]] || {
error "Failed at third-stage"
return 1
diff --git a/sdk b/sdk
@@ -39,8 +39,12 @@ vars+=(os mirror release section version)
# global variables
vars+=(R sdk_loaded)
# script variables
-vars+=(strapdir writebase device_name image_name)
-vars+=(loopdevice mappdevice )
+vars+=(workdir strapdir writebase)
+vars+=(loopdevice mappdevice)
+vars+=(arm_build_device)
+# script locals
+vars+=(device_name image_name arch size)
+vars+=(inittab)
# we assume source sdk is always run from the source dir
# which is the "root" of the program, $R, or env DEVUAN_SDK