sudo kpartx -avs test.img
sudo parted /dev/loop0 mktable msdos
sudo parted /dev/loop0 mkpart primary ext4 1 100%
sudo parted /dev/loop0 set 1 boot on
| #!/bin/bash | |
| set -euo pipefail | |
| # --- Settings --- | |
| IMG="rocky_installer.img" | |
| VMDK="rocky_installer.vmdk" | |
| SIZE="20G" | |
| LABEL="ROCKY_INSTALLER" | |
| ISO="/VMs/isos/Rocky-9.5-x86_64-dvd.iso" | |
| MNT_ISO="/mnt/iso" |
Receiver
socat -d -d UDP-RECV:9000,ip-add-membership=239.0.0.1:0.0.0.0,interface=eth0,reuseaddr FILE:/dev/ttyS1,raw,echo=0
socat -d -d UDP-RECV:9000,ip-add-membership=239.0.0.1:0.0.0.0,interface=eth0,reuseaddr PTY,raw,echo=0,link=/tmp/virtual-tty
socat -d -d UDP-RECV:9000,ip-add-membership=239.0.0.1:0.0.0.0,reuseaddr SYSTEM:'tee /dev/ttyS1 > /tmp/mirror'" Show line numbers
set number
" Allow normal pasting
set paste
" Set NPC analogues for set list
set listchars=eol:¬,tab:>-,trail:█,extends:>,precedes:<| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| bind | split-window -h | |
| bind - split-window -v | |
| unbind '"' | |
| unbind % | |
| bind -n F5 setw synchronize-panes |
| [:b1dcc9dd-5262-4d8d-a863-c897e6d979b9] | |
| background-color='rgb(23,20,33)' | |
| font='Cascadia Code 16' | |
| foreground-color='rgb(208,207,204)' | |
| palette=['rgb(0,0,0)', 'rgb(205,0,0)', 'rgb(0,205,0)', 'rgb(205,205,0)', 'rgb(0,0,238)', 'rgb(205,0,205)', 'rgb(0,205,205)', 'rgb(229,229,229)', 'rgb(127,127,127)', 'rgb(255,0,0)', 'rgb(0,255,0)', 'rgb(255,255,0)', 'rgb(92,92,255)', 'rgb(255,0,255)', 'rgb(0,255,255)', 'rgb(255,255,255)'] | |
| use-system-font=false | |
| use-theme-colors=true |
| authoritative; | |
| allow bootp; | |
| default-lease-time 600; | |
| max-lease-time 7200; | |
| log-facility local0; | |
| ddns-update-style none; | |
| # Parent class for all test | |
| class "test" { | |
| match concat( |