Skip to content

Commit

Permalink
Replace cdebootstrap-static with its dynamic variant.
Browse files Browse the repository at this point in the history
Primary argument to do this, is that updates to components from which
cdebootstrap-static is build, needed a manual trigger to be picked up.
By switching to the dynamic variant, that is no longer needed.
We also already had most of the dependencies of the dynamic one already
included in the project.

Signed-off-by: Diederik de Haas <[email protected]>
  • Loading branch information
diederikdehaas committed Apr 9, 2021
1 parent cad0986 commit 0ecdbe2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ function create_cpio {
ln -s ../../../etc/ssl/certs certs
cd ../../../..

# cdebootstrap-static components
cp -r tmp/usr/share/cdebootstrap-static rootfs/usr/share/
cp tmp/usr/bin/cdebootstrap-static rootfs/usr/bin/
# cdebootstrap components
cp -r tmp/usr/share/cdebootstrap rootfs/usr/share/
cp tmp/usr/bin/cdebootstrap rootfs/usr/bin/

# curl components
cp tmp/usr/bin/curl rootfs/usr/bin/
Expand Down
4 changes: 3 additions & 1 deletion scripts/etc/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

LOGFILE=/tmp/raspbian-ua-netinst.log

CDEBOOTSTRAP_BIN=cdebootstrap

# default options, can be overriden in installer-config.txt
preset=server
packages=
Expand Down Expand Up @@ -1112,7 +1114,7 @@ log_msg "Starting install process..."
# With 'cdebootstrap_cmdline we're actually using the word splitting what SC2086 warns us against
# This should probably be fixed at some point, but not in this run/branch.
# shellcheck disable=SC2086
cdebootstrap-static --arch=armhf $cdebootstrap_cmdline "$release" /rootfs $mirror --keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg || fail
$CDEBOOTSTRAP_BIN --arch=armhf $cdebootstrap_cmdline "$release" /rootfs $mirror --keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg || fail

log_msg "Configuring installed system:"

Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ packages+=("firmware-brcm80211")
packages+=("btrfs-progs")
packages+=("busybox")
packages+=("ca-certificates-udeb")
packages+=("cdebootstrap-static")
packages+=("cdebootstrap")
packages+=("curl")
packages+=("distro-info-data")
packages+=("dosfstools")
Expand Down

0 comments on commit 0ecdbe2

Please sign in to comment.