From 5bf8a3a10ce397dd3ef13f71600794b2194ec7ca Mon Sep 17 00:00:00 2001 From: parazyd Date: Thu, 21 Apr 2016 18:06:49 +0200 Subject: [PATCH] more variables for zuper debugging --- arm/init-arm | 2 +- arm/profiles/common-devuan | 2 +- sdk | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arm/init-arm b/arm/init-arm index cb46c07..c18835c 100755 --- 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 index b10e8c9..f0a0106 100644 --- 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 index 97bee0c..ce15e5e 100755 --- 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