Skip to content

Commit dab42b4

Browse files
Merge pull request #14 from RandomCoderOrg/v1.1-fixes
V1.1 fixes
2 parents 32d125e + 8345b7a commit dab42b4

File tree

8 files changed

+123
-148
lines changed

8 files changed

+123
-148
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.github/workflows/build-udroid.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: build-udroid
2-
on: [push]
2+
on:
3+
push:
4+
paths:
5+
- '**.sh'
6+
- '**.yml'
37
jobs:
48
BuildImpishRaw:
59
name: build impish

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# fs-cook
2-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook?ref=badge_shield)
2+
A project written in bash to make linux tarball building process easier
33

4-
[![RawBuildTest](https://github.com/RandomCoderOrg/fs-cook/actions/workflows/build-raw.yml/badge.svg)](https://github.com/RandomCoderOrg/fs-cook/actions/workflows/build-raw.yml)
4+
| | badges |
5+
|--|-- |
6+
|build tests ( `impish`, `hirsute`, `jammy` ) | [![build-udroid](https://github.com/RandomCoderOrg/fs-cook/actions/workflows/build-udroid.yml/badge.svg)](https://github.com/RandomCoderOrg/fs-cook/actions/workflows/build-udroid.yml) |
7+
| FOSS LICENSE | [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook?ref=badge_shield)
8+
|
59

610
[DEV] Linux tarball building
711
> ⚠️ warning this code is heavily experimental & work in progress!
812
>
913
> most of the feature/code may not work
1014
15+
## What this can do
16+
- can build any latest ubuntu & debian varients
17+
- supports cross architecture building ( requires `binfmt-support` enabled in kernel )
18+
- make fetch, build, pack process easier
19+
1120
## License
1221
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FRandomCoderOrg%2Ffs-cook?ref=badge_large)

build-impish-raw.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55
# export variable SUITE to set debootstrap suite name (default: hirsute)
66

77
source plugins/envsetup
8-
source plugins/colors
98

109
export OVERRIDER_COMPRESSION_TYPE
1110
export SUITE
1211
export ENABLE_EXIT
1312
export ENABLE_USER_SETUP
1413

15-
frn="out/impish-raw"
16-
OVERRIDER_COMPRESSION_TYPE="gzip"
1714
SUITE="impish"
15+
frn="out/${SUITE}-raw"
16+
OVERRIDER_COMPRESSION_TYPE="gzip"
1817
ENABLE_EXIT=true
1918
ENABLE_USER_SETUP=false
2019

@@ -60,13 +59,17 @@ EOF
6059

6160
}
6261

63-
do_build "${frn}-arm64" arm64
64-
do_compress "${frn}-arm64"
65-
do_build "${frn}-armhf" armhf
66-
do_compress "${frn}-armhf"
67-
do_build "${frn}-amd64" amd64
68-
do_compress "${frn}-amd64"
62+
do_build "${frn}-arm64" arm64
63+
do_compress "${frn}-arm64"
64+
do_build "${frn}-armhf" armhf
65+
do_compress "${frn}-armhf"
66+
do_build "${frn}-amd64" amd64
67+
do_compress "${frn}-amd64"
68+
69+
do_unmount "${frn}-arm64"
70+
do_unmount "${frn}-armhf"
71+
do_unmount "${frn}-amd64"
72+
73+
shout "Build complete"
74+
ls ${frn}*tar*
6975

70-
do_unmount "${frn}-arm64"
71-
do_unmount "${frn}-armhf"
72-
do_unmount "${frn}-amd64"

build-jammy.sh

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/usr/bin/env bash
2+
#shellcheck disable=SC1091
3+
4+
# this is an example file to BUILD raw file system
5+
# export variable SUITE to set debootstrap suite name (default: hirsute)
6+
7+
source plugins/envsetup
8+
9+
export OVERRIDER_COMPRESSION_TYPE
10+
export SUITE
11+
export ENABLE_EXIT
12+
export ENABLE_USER_SETUP
13+
14+
SUITE="jammy"
15+
frn="out/$SUITE-raw"
16+
OVERRIDER_COMPRESSION_TYPE="gzip"
17+
ENABLE_EXIT=true
18+
ENABLE_USER_SETUP=false
19+
20+
additional_setup() {
21+
cat <<- EOF > $chroot_dir/etc/apt/sources.list
22+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
23+
# newer versions of the distribution.
24+
deb $MIRROR $SUITE main restricted
25+
# deb-src $MIRROR $SUITE main restricted
26+
## Major bug fix updates produced after the final release of the
27+
## distribution.
28+
deb $MIRROR $SUITE-updates main restricted
29+
# deb-src $MIRROR $SUITE-updates main restricted
30+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
31+
## team. Also, please note that software in universe WILL NOT receive any
32+
## review or updates from the Ubuntu security team.
33+
deb $MIRROR $SUITE universe
34+
# deb-src $MIRROR $SUITE universe
35+
deb $MIRROR $SUITE-updates universe
36+
# deb-src $MIRROR $SUITE-updates universe
37+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
38+
## team, and may not be under a free licence. Please satisfy yourself as to
39+
## your rights to use the software. Also, please note that software in
40+
## multiverse WILL NOT receive any review or updates from the Ubuntu
41+
## security team.
42+
deb $MIRROR $SUITE multiverse
43+
# deb-src $MIRROR $SUITE multiverse
44+
deb $MIRROR $SUITE-updates multiverse
45+
# deb-src $MIRROR $SUITE-updates multiverse
46+
## N.B. software from this repository may not have been tested as
47+
## extensively as that contained in the main release, although it includes
48+
## newer versions of some applications which may provide useful features.
49+
## Also, please note that software in backports WILL NOT receive any review
50+
## or updates from the Ubuntu security team.
51+
deb $MIRROR $SUITE-backports main restricted universe multiverse
52+
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse
53+
EOF
54+
55+
}
56+
57+
do_build "${frn}-arm64" arm64
58+
do_compress "${frn}-arm64"
59+
do_build "${frn}-armhf" armhf
60+
do_compress "${frn}-armhf"
61+
do_build "${frn}-amd64" amd64
62+
do_compress "${frn}-amd64"
63+
64+
do_unmount "${frn}-arm64"
65+
do_unmount "${frn}-armhf"
66+
do_unmount "${frn}-amd64"
67+
68+
shout "Build complete..."
69+
ls $frn*tar*
70+

build-kali-big.sh

Lines changed: 0 additions & 74 deletions
This file was deleted.

build-kali-raw.sh

Lines changed: 0 additions & 47 deletions
This file was deleted.

cook.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
# export variable SUITE to set debootstrap suite name (default: hirsute)
66

77
source plugins/envsetup
8-
source plugins/colors
98

109
export OVERRIDER_COMPRESSION_TYPE
1110
export ENABLE_EXIT
1211
export ENABLE_USER_SETUP
13-
# export FS_USER
14-
# export FS_PASS
1512

1613
frn="out/hirsute-raw"
1714
OVERRIDER_COMPRESSION_TYPE="gzip"
@@ -59,13 +56,16 @@ deb $MIRROR $SUITE-backports main restricted universe multiverse
5956
EOF
6057
}
6158

62-
do_build "${frn}-arm64" arm64
63-
do_compress "${frn}-arm64"
64-
do_build "${frn}-armhf" armhf
65-
do_compress "${frn}-armhf"
66-
do_build "${frn}-amd64" amd64
67-
do_compress "${frn}-amd64"
59+
do_build "${frn}-arm64" arm64
60+
do_compress "${frn}-arm64"
61+
do_build "${frn}-armhf" armhf
62+
do_compress "${frn}-armhf"
63+
do_build "${frn}-amd64" amd64
64+
do_compress "${frn}-amd64"
6865

69-
do_unmount "${frn}-arm64"
70-
do_unmount "${frn}-armhf"
71-
do_unmount "${frn}-amd64"
66+
do_unmount "${frn}-arm64"
67+
do_unmount "${frn}-armhf"
68+
do_unmount "${frn}-amd64"
69+
70+
shout "Build Complete.."
71+
ls ${frn}*tar*

0 commit comments

Comments
 (0)