more variables for zuper debugging

This commit is contained in:
parazyd 2016-04-21 18:06:49 +02:00
parent 7edf6ca1dc
commit 5bf8a3a10c
No known key found for this signature in database
GPG Key ID: BB5E2E35B92E373E
3 changed files with 8 additions and 4 deletions

View File

@ -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}
}

View File

@ -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

8
sdk
View File

@ -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