Skip to content

Instantly share code, notes, and snippets.

@AndreiCherniaev
Last active December 8, 2025 12:01
Show Gist options
  • Select an option

  • Save AndreiCherniaev/bf2248d46f2ec7972764eddb0009bc61 to your computer and use it in GitHub Desktop.

Select an option

Save AndreiCherniaev/bf2248d46f2ec7972764eddb0009bc61 to your computer and use it in GitHub Desktop.
For HGST proj ubuntu deployment
# Manual https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html
autoinstall:
version: 1
refresh-installer:
update: true
channel: latest/edge
updates: all
identity:
hostname: ubuntu-desktop
password: '$6$TThZwH2sYnfxdzIN$COsmkwowJBH.pYW/jpfhzcBsxSQ6.lrEygIGUQLDrJBsTBgT1gLnkspvttBmgKIJl6UGGSOv4cDfV4Hj0BqS9/'
# There is password hash, use `mkpasswd --method=SHA-512`
realname: q
username: q
apt:
preserve_sources_list: false
mirror-selection:
primary:
- country-mirror
- uri: "http://ko.archive.ubuntu.com/ubuntu"
arches: [amd64]
geoip: true
keyboard:
layout: us
variant: ''
toggle: null
timezone: Asia/Seoul
storage:
layout:
name: lvm
match:
ssd: true
ssh:
allow-pw: false
authorized-keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKMYUmLg3GRx1UwdKqKwTI3lr/xeFKC8HYOULU3RScAZ ssh key Ground Station
install-server: false
late-commands:
- curtin in-target -- apt -o Acquire::Check-Valid-Until=false -o Acquire::Check-Date=false update
- curtin in-target -- add-apt-repository -y ppa:nuandllc/bladerf
- curtin in-target -- apt install -y tmux openssh-server gnuradio gpredict bladerf
@AndreiCherniaev
Copy link
Author

AndreiCherniaev commented Dec 8, 2025

Always verify your YAML before using. How to do it? Use subiquity

git clone https://github.com/canonical/subiquity.git && cd subiquity/
make install_deps
# put my HGST_ubuntu-deployment.yaml to subiquity/
wcurl https://gist.githubusercontent.com/AndreiCherniaev/bf2248d46f2ec7972764eddb0009bc61/raw/a394f20ad2ba7c5140393e27b331bdbfdf4053fd/HGST_ubuntu-deployment.yaml

SNAP=. ./scripts/validate-autoinstall-user-data.py --no-expect-cloudconfig 'HGST_ubuntu-deployment.yaml'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment