Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
551e5e39
Commit
551e5e39
authored
Aug 29, 2022
by
Holger Levsen
Browse files
reproducible Debian: refactoring
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
ffc5fe4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_debstrap.sh
View file @
551e5e39
...
@@ -40,32 +40,33 @@ delay_start
...
@@ -40,32 +40,33 @@ delay_start
# Actual run ${TOOL} twice
# Actual run ${TOOL} twice
mkdir
-p
$BUILDDIR
/b1/
${
TOOL
}
mkdir
-p
$BUILDDIR
/b1/
${
TOOL
}
mkdir
-p
$BUILDDIR
/b2/
${
TOOL
}
mkdir
-p
$BUILDDIR
/b2/
${
TOOL
}
for
LOOP
in
"first"
"second"
;
do
output_echo
"Verbosely running
${
TOOL
}
$SUITE
for the first run."
case
$LOOP
in
case
${
TOOL
}
in
first
)
SUBDIR
=
b1
mmdebstrap
)
sudo
mmdebstrap
-v
$SUITE
>
$BUILDDIR
/b1/
${
TOOL
}
/
${
SUITE
}
.tar
ACTION
=
"Verbosely running"
;;
REALTOOL
=
$TOOL
debootstrap
)
sudo
debootstrap
--verbose
$SUITE
$BUILDDIR
/b1/
${
TOOL
}
/
${
SUITE
}
sudo tar
--mtime
=
$SOURCE_DATE_EPOCH
--clamp-mtime
-C
$BUILDDIR
/b1/
${
TOOL
}
/
-cf
${
SUITE
}
.tar
${
SUITE
}
sudo rm
-rf
--one-file-system
$BUILDDIR
/b1/
${
TOOL
}
/
${
SUITE
}
;;
*
)
echo
"Failure:
${
TOOL
}
is unsupported."
exit
1
;;
esac
output_echo
"Running
${
TOOL
}
$SUITE
for the second run."
case
${
TOOL
}
in
mmdebstrap
)
sudo
mmdebstrap
$SUITE
>
$BUILDDIR
/b2/
${
TOOL
}
/
${
SUITE
}
.tar
;;
debootstrap
)
sudo
debootstrap
--verbose
$SUITE
$BUILDDIR
/b2/
${
TOOL
}
/
${
SUITE
}
sudo tar
--mtime
=
$SOURCE_DATE_EPOCH
--clamp-mtime
-C
$BUILDDIR
/b2/
${
TOOL
}
/
-cf
${
SUITE
}
.tar
${
SUITE
}
sudo rm
-rf
--one-file-system
$BUILDDIR
/b2/
${
TOOL
}
/
${
SUITE
}
;;
;;
*
)
echo
"Failure:
${
TOOL
}
is unsupported."
second
)
SUBDIR
=
b2
exit
1
ACTION
=
"Running"
case
$TOOL
in
mmdebstrap
)
REALTOOL
=
"mmdebstrap -v"
;;
debootstrap
)
REALTOOL
=
"debootstrap --verbose"
;;
esac
;;
;;
esac
esac
output_echo
"
$ACTION
${
TOOL
}
$SUITE
for the
$LOOP
run."
case
${
TOOL
}
in
mmdebstrap
)
sudo
$REALTOOL
$SUITE
>
$BUILDDIR
/
$SUBDIR
/
${
TOOL
}
/
${
SUITE
}
.tar
;;
debootstrap
)
sudo
$REALTOOL
$SUITE
$BUILDDIR
/
$SUBDIR
/
${
TOOL
}
/
${
SUITE
}
sudo tar
--mtime
=
$SOURCE_DATE_EPOCH
--clamp-mtime
-C
$BUILDDIR
/
$SUBDIR
/
${
TOOL
}
/
-cf
${
SUITE
}
.tar
${
SUITE
}
sudo rm
-rf
--one-file-system
$BUILDDIR
/
$SUBDIR
/
${
TOOL
}
/
${
SUITE
}
;;
*
)
echo
"Failure:
${
TOOL
}
is unsupported."
exit
1
;;
esac
done
output_echo
"Done running
${
TOOL
}
twice."
output_echo
"Done running
${
TOOL
}
twice."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment