-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eero/cleanup-builds-5' into 'master'
Bazelize HostOS - General cleanup in `icos_build` - Unwrap HostOS from nested builder - Use Bazel generic image build path for HostOS - Add LVM tooling to Bazel python tools - Add `lvm2` to builder containers See merge request dfinity-lab/public/ic!11201
- Loading branch information
Showing
26 changed files
with
662 additions
and
167 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 +1 @@ | ||
89c6de057c399dac1e131c0aaee2d15aaee734c8ff3f3c717ce7bb88ffecc529 | ||
20ed3537b5467a5143b325828d8f4f644261f1c48f80a4d38088ee3045baa157 |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
load("//toolchains/sysimage:toolchain.bzl", "ext4_image") | ||
|
||
package(default_visibility = ["__subpackages__"]) | ||
|
||
exports_files([ | ||
"partitions.csv", | ||
"volumes.csv", | ||
"rootfs/docker-base.dev", | ||
"rootfs/docker-base.prod", | ||
]) | ||
|
||
filegroup( | ||
name = "rootfs-files", | ||
srcs = glob(["rootfs/**"]), | ||
) | ||
|
||
ext4_image( | ||
name = "partition-config.tar", | ||
partition_size = "100M", | ||
target_compatible_with = [ | ||
"@platforms//os:linux", | ||
], | ||
) | ||
|
||
# All host-os targets are named the same, just stay in different submodules. | ||
# To build or run specific target: | ||
# | ||
# bazel run //ic-os/hostos/envs/prod:upload_disk-img [--s3_endpoint=<internal endpoint address>] | ||
# bazel build //ic-os/hostos/envs/dev/... | ||
# | ||
# check //ic-os/defs.bzl for the full list of targets. |
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,44 @@ | ||
load("//toolchains/sysimage:toolchain.bzl", "vfat_image") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
exports_files([ | ||
"extra_boot_args", | ||
]) | ||
|
||
genrule( | ||
name = "build-bootloader-tree", | ||
srcs = [], | ||
outs = [ | ||
"bootloader-tree.tar", | ||
], | ||
cmd = "$(location build-bootloader-tree.sh) -o $@", | ||
target_compatible_with = [ | ||
"@platforms//os:linux", | ||
], | ||
tools = ["build-bootloader-tree.sh"], | ||
) | ||
|
||
vfat_image( | ||
name = "partition-esp.tar", | ||
src = ":bootloader-tree.tar", | ||
partition_size = "100M", | ||
subdir = "boot/efi", | ||
target_compatible_with = [ | ||
"@platforms//os:linux", | ||
], | ||
) | ||
|
||
vfat_image( | ||
name = "partition-grub.tar", | ||
src = ":bootloader-tree.tar", | ||
extra_files = { | ||
":grub.cfg": "/boot/grub/grub.cfg:0644", | ||
":grubenv": "/boot/grub/grubenv:0644", | ||
}, | ||
partition_size = "100M", | ||
subdir = "boot/grub", | ||
target_compatible_with = [ | ||
"@platforms//os: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,14 @@ | ||
# Uncomment this to run system with SELinux in PERMISSIVE mode: | ||
# the system will use SELinux and keep track of operations that would | ||
# be prohibited, but will only log but not actually deny them. This is | ||
# useful for debug and policy development. The system behaves essentially the | ||
# same as if SELinux was not activated. | ||
# | ||
EXTRA_BOOT_ARGS="security=selinux selinux=1 enforcing=0" | ||
|
||
# Uncomment this to run system with SELinux in ENFORCING mode: All rules | ||
# of the policy are enforced, and forbidden actions are not just logged but | ||
# stopped. This causes the system to behave differently than in either | ||
# "no SELinux" or "permissive" mode. | ||
# | ||
# EXTRA_BOOT_ARGS="security=selinux selinux=1 enforcing=1" |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.