-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
372 additions
and
158 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Config] | ||
Dependencies=minimal-base | ||
|
||
[Distribution] | ||
CacheOnly=always | ||
|
||
[Output] | ||
Format=portable | ||
SplitArtifacts=yes | ||
|
||
[Content] | ||
BaseTrees=%O/minimal-base | ||
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs | ||
Bootable=no | ||
|
||
BuildSources= | ||
Packages= | ||
BuildPackages= | ||
VolatilePackages= | ||
|
||
[Host] | ||
Incremental=no |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later |
5 changes: 5 additions & 0 deletions
5
mkosi.images/minimal-0/mkosi.extra/usr/lib/systemd/system/minimal-app0.service
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Service] | ||
ExecStartPre=cat /usr/lib/os-release | ||
ExecStart=sleep 120 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
set -eux | ||
|
||
mkdir -p "$BUILDROOT/var/lib/app1" | ||
|
||
cat >>"$BUILDROOT/usr/lib/os-release" <<EOF | ||
MARKER=1 | ||
PORTABLE_PREFIXES=app0 minimal minimal-app0 | ||
EOF | ||
cp "$BUILDROOT/usr/lib/systemd/system/minimal-app0.service" "$BUILDROOT/usr/lib/systemd/system/minimal-app0-foo.service" |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Config] | ||
Dependencies=minimal-base | ||
|
||
[Distribution] | ||
CacheOnly=always | ||
|
||
[Output] | ||
Format=portable | ||
SplitArtifacts=yes | ||
|
||
[Content] | ||
BaseTrees=%O/minimal-base | ||
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs | ||
Bootable=no | ||
|
||
BuildSources= | ||
Packages= | ||
BuildPackages= | ||
VolatilePackages= | ||
|
||
[Host] | ||
Incremental=no |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later |
5 changes: 5 additions & 0 deletions
5
mkosi.images/minimal-1/mkosi.extra/usr/lib/systemd/system/minimal-app0.service
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Service] | ||
ExecStartPre=cat /usr/lib/os-release | ||
ExecStart=sleep 120 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
set -eux | ||
|
||
mkdir -p "$BUILDROOT/var/lib/app1" | ||
|
||
cat >>"$BUILDROOT/usr/lib/os-release" <<EOF | ||
MARKER=2 | ||
PORTABLE_PREFIXES=app0 minimal minimal-app0 | ||
EOF | ||
cp "$BUILDROOT/usr/lib/systemd/system/minimal-app0.service" "$BUILDROOT/usr/lib/systemd/system/minimal-app0-bar.service" |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Output] | ||
ImageId=minimal-base | ||
Format=directory | ||
ImageId=minimal-base | ||
|
||
[Content] | ||
Bootable=no | ||
@Locale=C.UTF-8 | ||
WithDocs=no | ||
|
||
BuildSources= | ||
Packages= | ||
BuildPackages= | ||
VolatilePackages= | ||
|
||
Packages= | ||
bash | ||
coreutils | ||
util-linux |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Distribution=arch | ||
|
||
[Content] | ||
Packages= | ||
inetutils | ||
iproute | ||
openbsd-netcat |
12 changes: 12 additions & 0 deletions
12
mkosi.images/minimal-base/mkosi.conf.d/10-centos-fedora.conf
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Distribution=|centos | ||
Distribution=|fedora | ||
|
||
[Content] | ||
Packages= | ||
hostname | ||
iproute | ||
iproute-tc | ||
netcat |
11 changes: 11 additions & 0 deletions
11
mkosi.images/minimal-base/mkosi.conf.d/10-debian-ubuntu-opensuse.conf
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Distribution=|debian | ||
Distribution=|ubuntu | ||
|
||
[Content] | ||
Packages= | ||
hostname | ||
iproute2 | ||
netcat-openbsd |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
[Match] | ||
Distribution=opensuse | ||
|
||
[Content] | ||
Packages= | ||
hostname | ||
iproute2 | ||
netcat-openbsd | ||
patterns-base-minimal_base |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
|
||
# This is a stub resolv.conf intended as a mountpoint for the host's resolv.conf |
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ Packages= | |
quota-tools | ||
sbsigntools | ||
shadow | ||
squashfs-tools | ||
tpm2-tss | ||
vim | ||
|
||
|
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 |
---|---|---|
|
@@ -61,6 +61,7 @@ Packages= | |
psmisc | ||
quota | ||
sbsigntool | ||
squashfs-tools | ||
tzdata | ||
xxd | ||
|
||
|
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 |
---|---|---|
|
@@ -61,6 +61,7 @@ Packages= | |
sbsigntools | ||
sed | ||
shadow | ||
squashfs | ||
timezone | ||
user(bin) | ||
user(daemon) | ||
|
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
Oops, something went wrong.