Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️

Alexandre Pinon zaggash

🕶️
  • Rancher Labs. ( Suse )
  • France
  • @zaggash
View GitHub Profile
@zaggash
zaggash / Rpi4_Boot-Ubuntu-from-SSD.md
Last active Dec 14, 2020
Rpi 4 - Boot Ubuntu from SSD
View Rpi4_Boot-Ubuntu-from-SSD.md

1 - Update EEPROM if not already done

Install Raspberry Pi OS and all the latest update
Edit /etc/default/rpi-eeprom-update and set FIRMWARE_RELEASE_STATUS="stable"
Update the Firmware (*** Need to be at least from 03.09.2020 ***):

rpi-eeprom-update -d -f /lib/firmware/raspberrypi/bootloader/stable/pieeprom-<latest_firmware>.bin

2 - Write Ubuntu image to the SSD

View gist:de436cc58a2030c208ab46a269ba13f8
### Keybase proof
I hereby claim:
* I am zaggash on github.
* I am apinon (https://keybase.io/apinon) on keybase.
* I have a public key ASADl2LUJ5UKKkB49-ab-hiS0_QaALzsaq6TxU_-cRzIVwo
To claim this, I am signing this object:
View tcpdump-log_watcher.sh
#!/bin/bash
## tcpdump-watch
## Maintainer: Kyle Squizzato - ksquizz@gmail.com
## Simple tool to capture tcpdump until certain log message is matched.
## Fill in each of the variables in the SETUP section then invoke the script and wait
## for the issue to occur, the script will stop on it's own when the $match is seen
## in the desired $container_name.
View alpine-scratch.Dockerfile
FROM alpine as buildroot
MAINTAINER zaggash
# install packages
RUN \
apk add --no-cache \
bash \
curl \
tzdata \
xz
View ubuntu-scratch.Dockerfile
FROM scratch
ADD ubuntu-xenial-core-cloudimg-root.tar.gz /
# a few minor docker-specific tweaks
# see https://github.com/docker/docker/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap
RUN set -xe \
\
# https://github.com/docker/docker/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap#L40-L48
&& echo '#!/bin/sh' > /usr/sbin/policy-rc.d \
&& echo 'exit 101' >> /usr/sbin/policy-rc.d \