-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for RISC-V 64bit architecture
Basic support of riscv64 architecture. Shim is not supported yet, will be added later. Signed-off-by: Loic Devulder <[email protected]>
- Loading branch information
Showing
14 changed files
with
339 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Elemental CLI is built in another Dockerfile that support multi-arch | ||
ARG BASE_OS_IMAGE=opensuse/leap | ||
ARG BASE_OS_VERSION=15.5 | ||
ARG BIN_REPO | ||
ARG VERSION | ||
|
||
FROM ${BIN_REPO}:${VERSION} AS bin | ||
FROM ${OS_IMAGE}:${OS_VERSION} AS elemental-toolkit | ||
|
||
RUN ARCH=$(uname -m); \ | ||
[[ "${ARCH}" == "aarch64" ]] && ARCH="arm64"; \ | ||
zypper --non-interactive removerepo repo-update || true; \ | ||
zypper install -y --no-recommends xfsprogs \ | ||
parted \ | ||
util-linux-systemd \ | ||
e2fsprogs \ | ||
udev \ | ||
rsync \ | ||
grub2 \ | ||
dosfstools \ | ||
grub2-${ARCH}-efi \ | ||
squashfs \ | ||
mtools \ | ||
xorriso \ | ||
cosign \ | ||
gptfdisk \ | ||
lvm2 | ||
|
||
# Copy the built CLI | ||
COPY --from=bin /usr/bin/elemental /usr/bin/elemental | ||
ENTRYPOINT ["/usr/bin/elemental"] | ||
|
||
# Add to /system/oem folder so install/upgrade/reset hooks will run when running this container. | ||
# Needed for boot-assessment | ||
COPY pkg/features/embedded/cloud-config-essentials/system/oem /system/oem/ |
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
28 changes: 28 additions & 0 deletions
28
examples/tumbleweed/patches/0001-fix-dmsquash-live-restore-compatibility-with-earlier.patch
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,28 @@ | ||
From 0e780720efe6488c4e07af39926575ee12f40339 Mon Sep 17 00:00:00 2001 | ||
From: Laszlo Gombos <[email protected]> | ||
Date: Fri, 24 Feb 2023 01:57:19 +0000 | ||
Subject: [PATCH] fix(dmsquash-live): restore compatibility with earlier | ||
releases | ||
|
||
Follow-up to 40dd5c90e0efcb9ebaa9abb42a38c7316e9706bd . | ||
--- | ||
modules.d/90dmsquash-live/dmsquash-live-root.sh | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh | ||
index 62d1b5e7..a98e258c 100755 | ||
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh | ||
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh | ||
@@ -403,6 +403,10 @@ fi | ||
|
||
ROOTFLAGS="$(getarg rootflags)" | ||
|
||
+if [ "$overlayfs" = required ]; then | ||
+ echo "rd.live.overlay.overlayfs=1" > /etc/cmdline.d/dmsquash-need-overlay.conf | ||
+fi | ||
+ | ||
if [ -n "$overlayfs" ]; then | ||
if [ -n "$FSIMG" ]; then | ||
mkdir -m 0755 -p /run/rootfsbase | ||
-- | ||
2.35.3 |
Oops, something went wrong.