Skip to content

Commit

Permalink
Makefile: Use bsdtar for building rootfs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Feb 9, 2022
1 parent dc04af2 commit 6f423f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies for build (Apt)
shell: bash
run: |
sudo env DEBIAN_FRONTEND=noninteractive apt update -y && \
sudo env DEBIAN_FRONTEND=noninteractive apt install -y libarchive-tools
- name: Build
run: |
make
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies for build (Apt)
run: |
sudo env DEBIAN_FRONTEND=noninteractive apt update -y && \
sudo env DEBIAN_FRONTEND=noninteractive apt install -y libarchive-tools
- name: Build
run: |
make
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ all: $(OUT_TGZ)
tgz: $(OUT_TGZ)
$(OUT_TGZ): rootfinal.tmp
@echo -e '\e[1;31mBuilding $(OUT_TGZ)\e[m'
cd root.x86_64; sudo tar --xattrs --xattrs-include="security.capability" -zcpf ../$(OUT_TGZ) *
cd root.x86_64; sudo bsdtar -zcpf ../$(OUT_TGZ) *
sudo chown `id -un` $(OUT_TGZ)

rootfinal.tmp: glibc.tmp fakeroot.tmp locale.tmp
Expand Down Expand Up @@ -82,7 +82,7 @@ proc-tmp.tmp: root.x86_64.tmp

root.x86_64.tmp: base.tar.gz
@echo -e '\e[1;31mExtracting rootfs...\e[m'
sudo tar --xattrs --xattrs-include="security.capability" -zxpf base.tar.gz
sudo bsdtar -zxpf base.tar.gz
sudo chmod +x root.x86_64
touch root.x86_64.tmp

Expand Down

0 comments on commit 6f423f5

Please sign in to comment.