Package: *
Pin: release n=focal,o=Ubuntu
Pin-Priority: -100
+
+Package: linux-image-* linux-modules-* linux-firmware intel-microcode amd64-microcode
+Pin: release n=focal,o=Ubuntu
+Pin-Priority: 500
+++ /dev/null
-deb http://archive.ubuntu.com/ubuntu/ focal main universe
-deb http://archive.ubuntu.com/ubuntu/ focal-updates main universe
-deb http://archive.ubuntu.com/ubuntu/ focal-security main universe
-deb http://archive.ubuntu.com/ubuntu/ focal-backports main universe
-deb-src http://archive.ubuntu.com/ubuntu/ focal main universe
-deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main universe
-deb-src http://archive.ubuntu.com/ubuntu/ focal-security main universe
-deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main universe
--- /dev/null
+FOCAL
\ No newline at end of file
--- /dev/null
+FOCAL
\ No newline at end of file
[Unit]
Description=check whether to kexec to fai, reboot, or do nothing
+After=syslog.target network-online.target
[Service]
Type=oneshot
ExecStart=/root/fai-check
+TimeoutStartSec=60
[Install]
-WantedBy=network.target
+WantedBy=multi-user.target
if ! type -p devbyid; then
for d in $FAI/distro-install-common \
- /a/bin/fai/fai/config/distro-install-common $FAI $PWD; do
+ /a/bin/fai/fai/config/distro-install-common $FAI $PWD; do
[[ -d $d ]] || continue
if [[ -e $d/devbyid ]]; then
devbyid=$d/devbyid
fi
done
+even_raid=false
if ifclass RAID0 || (( ${#boot_devs[@]} == 1 )); then
raid_level=0
elif ifclass RAID1 || (( ${#boot_devs[@]} <= 3 )); then
+ if (( ${#boot_devs[@]} == 2 )); then
+ even_raid=true
+ fi
raid_level=1
else
raid_level=10
fi
### end wipefs
+
+ if $even_raid; then
+ for dev in ${devs[@]}; do
+ disk_mib=$(( $(parted -m $dev unit MiB print | \
+ sed -nr "s#^/dev/[^:]+:([0-9]+).*#\1#p") - 1))
+ if [[ ! min_disk_mib ]] || (( disk_mib < min_disk_mib )); then
+ min_disk_mib=$disk_mib
+ fi
+ done
+ fi
+
for dev in ${devs[@]}; do
if [[ $SPECIAL_DISK ]]; then
dev=$(devbyid $SPECIAL_DISK)
#
# Note: parted print error output is expected. example:
# Error: /dev/vda: unrecognised disk label
- disk_mib=$(( $(parted -m $dev unit MiB print | \
- sed -nr "s#^/dev/[^:]+:([0-9]+).*#\1#p") - 1))
+ if $even_raid; then
+ disk_mib=$min_disk_mib
+ else
+ disk_mib=$(( $(parted -m $dev unit MiB print | \
+ sed -nr "s#^/dev/[^:]+:([0-9]+).*#\1#p") - 1))
+ fi
root_end=$(( disk_mib - swap_mib - boot_mib / ${#boot_devs[@]} ))
swap_end=$(( root_end + swap_mib))
openssh-client
pciutils
perl
+# newer distros dont have python, it gets naturally removed
python
python-minimal
+python3
+python3-minimal
reportbug
telnet
traceroute
ifupdown
netplan.io-
libnss-resolve
+publicsuffix
+iso-codes
+# new package buster/nabia+
+cryptsetup-initramfs
# iank, copied from DEBIAN so it goes into ubuntu too
PACKAGES install GRUB_PC
PACKAGES install GRUB_EFI
grub-efi
+
+PACKAGES install NABIA FOCAL
speed=115200
cmdline="rd.luks.crypttab=no net.ifnames=0 console=ttyS0,${speed}n8 console=tty0"
case $HOSTNAME in
+ # https://wiki.archlinux.org/index.php/Solid_state_drive#Resolving_NCQ_errors
+ # evo-870 doesnt get along well with d16 with etiona
+ kd) cmdline+=" libata.force=5.00:noncq" ;;
# per rubens suggestion to make a d16 more stable
kd|kw) cmdline+=" pci=realloc=off" ;;
esac
uset wireless.radio1.disabled true
else
# defaults, just reseting in case client config ran
+ uset wireless.default_radio0.network lan
uset wireless.default_radio0.mode ap
for x in 0 1; do
uset wireless.default_radio$x.ssid "$ssid"