라즈베리파이 5에서 NVMe SSD를 ZFS로 초기화하고 라즈베리파이 OS를 설치한 후 부팅하는 방법을 단계별로 설명해 드리겠습니다.
- 먼저 ZFS를 설치합니다:
sudo apt update
sudo apt install zfsutils-linux
{ | |
description = "devshell for zephyr"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
zephyr = { | |
url = "github:zephyrproject-rtos/zephyr/v4.1.0"; | |
flake = false; |
west flash | |
-- west flash: rebuilding | |
ninja: no work to do. | |
-- west flash: using runner stm32cubeprogrammer | |
------------------------------------------------------------------- | |
STM32CubeProgrammer v2.19.0 | |
------------------------------------------------------------------- | |
ST-LINK SN : 066FFF554869774867243943 | |
ST-LINK FW : V2J33M25 |
#!/usr/bin/bash | |
# GitHub CLI | |
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \ | |
&& sudo mkdir -p -m 755 /etc/apt/keyrings \ | |
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \ | |
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \ | |
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ | |
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | |
&& sudo apt update \ |
https://unix.stackexchange.com/a/669602 |
#!/bin/bash | |
set -e | |
PACKAGES="raspberrypi-kernel-headers zfs-dkms zfsutils-linux curl cryptsetup lvm2 lsof grub-efi-arm64" | |
ZFS_MODULE="zfs" | |
MOUNT_POINT="/mnt/newroot" | |
IMAGE_URL="https://downloads.raspberrypi.org/raspios_lite_arm64_latest" | |
IMAGE_FILE="raspios_lite_arm64_latest.img" | |
COMPRESSED_FILE="${IMAGE_FILE}.xz" |
/* EDIT MODE */ | |
.canvas-node .HyperMD-header.HyperMD-header-1 { | |
text-align: center; | |
} | |
/* PREVIEW MODE */ | |
.canvas-node .markdown-preview-view h1 { | |
text-align: center; |
{ | |
"$schema": "", | |
"type": "object", | |
"properties": { | |
"author": { | |
"type": "string" | |
}, | |
"extensions": { | |
"type": {"string"} | |
} |