Rename rbos → redbear everywhere, add redbear-info system tool
Replace all 'rbos'/'RBOS' references with 'redbear'/'Red Bear OS' across the build system, scripts, docs, and configs. Renamed files: rbos.ipxe → redbear.ipxe assets/rbos-icon.png → assets/redbear-icon.png recipes/system/rbos-info → recipes/system/redbear-info Added redbear-info: a system tool that enumerates all Red Bear OS custom components, checks runtime availability via scheme paths and binary presence, and prints status/test info. Supports --verbose, --json, and --test output modes. Zero external dependencies.
This commit is contained in:
@@ -9,7 +9,7 @@ if [ -n "$1" ]
|
||||
then
|
||||
DISK="$1"
|
||||
else
|
||||
DISK=/dev/disk/by-partlabel/RBOS_INSTALL
|
||||
DISK=/dev/disk/by-partlabel/Red Bear OS_INSTALL
|
||||
fi
|
||||
|
||||
if [ ! -b "${DISK}" ]
|
||||
@@ -37,10 +37,10 @@ fi
|
||||
BOOTLOADER="recipes/core/bootloader/target/${ARCH}-unknown-redox/stage/usr/lib/boot/bootloader.efi"
|
||||
set -x
|
||||
sudo mkdir -pv "${ESP}/EFI" "${ESP}/loader/entries"
|
||||
sudo cp -v "${BOOTLOADER}" "${ESP}/EFI/rbos.efi"
|
||||
sudo tee "${ESP}/loader/entries/rbos.conf" <<EOF
|
||||
sudo cp -v "${BOOTLOADER}" "${ESP}/EFI/redbear.efi"
|
||||
sudo tee "${ESP}/loader/entries/redbear.conf" <<EOF
|
||||
title Red Bear OS
|
||||
efi /EFI/rbos.efi
|
||||
efi /EFI/redbear.efi
|
||||
EOF
|
||||
set +x
|
||||
|
||||
@@ -48,5 +48,5 @@ sync
|
||||
|
||||
echo "Finished installing Red Bear OS dual boot"
|
||||
echo ""
|
||||
echo "To mount the RBOS filesystem partition, run:"
|
||||
echo "To mount the Red Bear OS filesystem partition, run:"
|
||||
echo " ./scripts/mount-redoxfs.sh ${DISK}"
|
||||
|
||||
@@ -11,7 +11,7 @@ if [ -z "$*" ]
|
||||
then
|
||||
echo "Find matching recipes, and format for inclusion in config"
|
||||
echo "Usage: $0 \"pattern\""
|
||||
echo "Must be run from the RBOS build directory"
|
||||
echo "Must be run from the Red Bear OS build directory"
|
||||
echo "e.g. $0 \"TODO.*error\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
MOUNT_POINT="/mnt/rbos"
|
||||
MOUNT_POINT="/mnt/redbear"
|
||||
DISK_DEVICE=""
|
||||
|
||||
show_help() {
|
||||
@@ -11,19 +11,19 @@ show_help() {
|
||||
echo "Mount or unmount a Red Bear OS filesystem partition"
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " -u, --unmount Unmount the RBOS filesystem partition"
|
||||
echo " -m, --mount-point PATH Custom mount point (default: /mnt/rbos)"
|
||||
echo " -u, --unmount Unmount the Red Bear OS filesystem partition"
|
||||
echo " -m, --mount-point PATH Custom mount point (default: /mnt/redbear)"
|
||||
echo " -h, --help Show this help"
|
||||
echo ""
|
||||
echo "Examples:"
|
||||
echo " $0 /dev/sda3 Mount /dev/sda3"
|
||||
echo " $0 -u Unmount from default location"
|
||||
echo " $0 -m /mnt/my-rbos /dev/sda3 Mount to custom location"
|
||||
echo " $0 -m /mnt/my-redbear /dev/sda3 Mount to custom location"
|
||||
}
|
||||
|
||||
unmount_fs() {
|
||||
if mountpoint -q "$MOUNT_POINT" 2>/dev/null; then
|
||||
echo "Unmounting RBOS filesystem from $MOUNT_POINT..."
|
||||
echo "Unmounting Red Bear OS filesystem from $MOUNT_POINT..."
|
||||
fusermount -u "$MOUNT_POINT" || fusermount3 -u "$MOUNT_POINT"
|
||||
echo "Successfully unmounted"
|
||||
else
|
||||
@@ -93,7 +93,7 @@ if [ "$UNMOUNT" = true ]; then
|
||||
fi
|
||||
|
||||
if [ -z "$DISK_DEVICE" ]; then
|
||||
DISK_DEVICE="/dev/disk/by-partlabel/RBOS_INSTALL"
|
||||
DISK_DEVICE="/dev/disk/by-partlabel/Red Bear OS_INSTALL"
|
||||
if [ ! -b "$DISK_DEVICE" ]; then
|
||||
echo "Error: No device specified and default partition not found"
|
||||
echo ""
|
||||
@@ -114,6 +114,6 @@ mkdir -p "$MOUNT_POINT"
|
||||
echo "Mounting $DISK_DEVICE to $MOUNT_POINT..."
|
||||
"$REDOXFS_BIN" "$DISK_DEVICE" "$MOUNT_POINT"
|
||||
|
||||
echo "RBOS filesystem successfully mounted at $MOUNT_POINT"
|
||||
echo "Red Bear OS filesystem successfully mounted at $MOUNT_POINT"
|
||||
echo "To unmount, run: $0 -u"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ set -ex
|
||||
trap 'kill -HUP 0' EXIT
|
||||
|
||||
eval $(make setenv)
|
||||
make "${BUILD}/rbos-live.iso"
|
||||
make "${BUILD}/redbear-live.iso"
|
||||
|
||||
echo "Allowing packet forwarding"
|
||||
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
|
||||
@@ -45,7 +45,7 @@ ARGS=(
|
||||
"--dhcp-boot=tag:!ipxe,tag:efi-aarch64,ipxe-aarch64.efi"
|
||||
# IPXE
|
||||
"--dhcp-userclass=set:ipxe,iPXE"
|
||||
"--dhcp-boot=tag:ipxe,rbos.ipxe"
|
||||
"--dhcp-boot=tag:ipxe,redbear.ipxe"
|
||||
)
|
||||
|
||||
sudo dnsmasq "${ARGS[@]}"&
|
||||
|
||||
@@ -6,7 +6,7 @@ if [ -z "$*" ]
|
||||
then
|
||||
echo "Show the contents of the stage and sysroot folders in recipe(s)"
|
||||
echo "Usage: $0 recipe1 ..."
|
||||
echo "Must be run from the RBOS build directory"
|
||||
echo "Must be run from the Red Bear OS build directory"
|
||||
echo "e.g. $0 kernel"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
+2
-2
@@ -24,9 +24,9 @@ for ARCH in "${ARCHS[@]}"
|
||||
do
|
||||
for CONFIG_NAME in "${CONFIGS[@]}"
|
||||
do
|
||||
IMAGE="build/${ARCH}/${CONFIG_NAME}/rbos-live.iso"
|
||||
IMAGE="build/${ARCH}/${CONFIG_NAME}/redbear-live.iso"
|
||||
make ARCH="${ARCH}" CONFIG_NAME="${CONFIG_NAME}" "${IMAGE}"
|
||||
cp -v "${IMAGE}" "${VENTOY}/rbos-${CONFIG_NAME}-${ARCH}.iso"
|
||||
cp -v "${IMAGE}" "${VENTOY}/redbear-${CONFIG_NAME}-${ARCH}.iso"
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user