-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build pkgs using only [Stageˣ]-derived tools image, without relying on Alpine Fixes: siderolabs/toolchain#129 Fixes: #1151 - feat: update bldr - fix: remove /toolchain prefix - feat: build what is possible using network: none - feat: usrmerge and unified /usr/lib - chore: use StageX bash instead of Alpine bash - fix: make iptables build - chore: move kernel modules under /usr/lib/modules - refactor: remove git requirement - test: check nvidia nonfree drivers' signatures Signed-off-by: Dmitry Sharshakov <[email protected]>
- Loading branch information
Showing
56 changed files
with
267 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,9 @@ | ||
name: base | ||
variant: scratch | ||
shell: /toolchain/bin/bash | ||
shell: /bin/bash | ||
dependencies: | ||
- image: "{{ .TOOLS_IMAGE }}" | ||
- stage: musl | ||
steps: | ||
- prepare: | ||
- | | ||
cp -R /toolchain/lib/gcc /lib | ||
cp -R /toolchain/lib/libgcc* /lib | ||
cp -R /toolchain/lib/libstdc* /lib | ||
cp -R /toolchain/lib/libz* /lib | ||
mkdir /bin | ||
find /toolchain/bin -type f -executable -printf "%f\n" | xargs -I {} ln -s /toolchain/bin/{} /bin/{} | ||
ln -sv /toolchain/bin/bash /bin/sh | ||
adjust.sh | ||
finalize: | ||
- from: / | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
name: fhs | ||
variant: scratch | ||
shell: /bin/bash | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- install: | ||
- | | ||
PREFIX=/rootfs | ||
mkdir -pv ${PREFIX}/{dev,lib,proc,sys,bin,sbin,etc,opt,run} | ||
mkdir -pv ${PREFIX}/{dev,proc,sys,etc,opt,run} | ||
mkdir -pv ${PREFIX}/run/lock | ||
mkdir -pv ${PREFIX}/usr/{bin,sbin,lib,var,include,src} | ||
mkdir -pv ${PREFIX}/usr/local/{bin,sbin,lib,include} | ||
mkdir -pv ${PREFIX}/var/{log,run,mail,spool} | ||
mkdir -pv ${PREFIX}/var/{log,mail,spool} | ||
install -dv -m 0750 ${PREFIX}/root | ||
install -dv -m 1777 ${PREFIX}/tmp ${PREFIX}/var/tmp | ||
cd ${PREFIX} | ||
ln -sT usr/lib lib64 | ||
ln -sT usr/lib lib | ||
ln -sT usr/bin bin | ||
ln -sT usr/sbin sbin | ||
ln -sT lib usr/lib64 | ||
ln -sT ../run var/run | ||
ln -sT ../run/lock var/lock | ||
finalize: | ||
- from: /rootfs | ||
to: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.