Make template builder working on Debian
1. Use bash explicitly where required 2. Don't use bash-isms where not. QubesOS/qubes-issues#1907
This commit is contained in:
parent
b427341d28
commit
d976ffd3a6
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
|
if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
|
||||||
set -x
|
set -x
|
||||||
|
@ -33,11 +33,9 @@ Obsoletes: %{name} > %{version}-%{release}
|
|||||||
Qubes template for %{template_name}
|
Qubes template for %{template_name}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd qubeized_images/%{template_name}
|
cd qubeized_images/%{template_name}
|
||||||
rm -f root.img.part.*
|
rm -f root.img.part.*
|
||||||
tar --sparse --dereference -cf - root.img | split -d -b 1G - root.img.part.
|
tar --sparse --dereference -cf - root.img | split -d -b 1G - root.img.part.
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
Loading…
Reference in New Issue
Block a user