Skip to content

Instantly share code, notes, and snippets.

@jby
jby / preseed.txt
Last active October 17, 2021 18:15
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string SE
d-i debian-installer/locale string en_US.UTF-8
d-i localechooser/supported-locales multiselect en_US.UTF-8, sv_SE.UTF-8
d-i console-setup/ask_detect boolean true
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i hw-detect/load_firmware boolean true
@jby
jby / fai-mirror
Created October 20, 2021 12:53
fai-mirror fail
install_packages: read config file UBUNTU
install_packages: executing apt-get -d -o Aptitude::Log=/dev/null -o Aptitude::CmdLine::Ignore-Trust-Violations=yes -o APT::Get::AllowUnauthenticated=true -o Acquire::AllowInsecureRepositories=true -o DPkg::force-conflicts::=yes -o Dir::State=/home/jonasb/fai/MIRROR/aptcache/var/lib/apt -o Dir::Log=/home/jonasb/fai/MIRROR/aptcache/var/log/apt -o Dir::State::extended_states=/home/jonasb/fai/MIRROR/aptcache/var/lib/apt/lists/extended_states -o Dir::State::status=/home/jonasb/fai/MIRROR/aptcache/statefile -o Dir::Cache=/home/jonasb/fai/MIRROR/aptcache/var/cache/apt -o Dir::State=/home/jonasb/fai/MIRROR/aptcache/var/cache/apt -o Dir::Cache::Archives=/home/jonasb/fai/MIRROR/aptcache/var/cache/apt/archives -o Dir::Etc=/home/jonasb/fai/MIRROR/aptcache/etc/apt/ -o Dir::State::Lists=/home/jonasb/fai/MIRROR/aptcache/var/lib/apt/lists/ -o APT::Architecture=amd64 -y --fix-missing install linux-image-generic
Reading package lists... Done
Building dependency tree... Done
Package l
@jby
jby / fai-make-nfsroot
Created October 20, 2021 12:56
fai-make-nfsroot fails
fai-make-nfsroot -k 10.7s  Wed 20 Oct 2021 02:50:30 PM CEST
Upgrading nfsroot and installing new packages into the nfsroot.
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://fai-project.org/download buster InRelease
Hit:3 http://deb.debian.org/debian-security buster/updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Using MunkiReport Version of Migrate
Migration table created successfully.
Migrating: 0100_00_00_000001_timemachine_schema_v1
Migrated: 0100_00_00_000001_timemachine_schema_v1 (0 seconds)
Migrating: 0213_00_00_000001_add_columns_for_pmset_data
Migrated: 0213_00_00_000001_add_columns_for_pmset_data (0 seconds)
Migrating: 0213_00_00_000001_add_dsconfigad_data
Migrated: 0213_00_00_000001_add_dsconfigad_data (0 seconds)
Migrating: 0213_00_00_000001_add_filevault_users
Migrated: 0213_00_00_000001_add_filevault_users (0 seconds)
#_preseed_V1
#### Contents of the preconfiguration file (for bullseye)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string en
d-i debian-installer/country string SE
d-i debian-installer/locale string en_US.UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AbandonProcessGroup</key>
<true/>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
[?25l[?7l .-/+oossssoo+/-.
`:+ssssssssssssssssss+:`
-+ssssssssssssssssssyyssss+-
.ossssssssssssssssssdMMMNysssso.
/ssssssssssshdmmNNmmyNMMMMhssssss/
+ssssssssshmydMMMMMMMNddddyssssssss+
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
ossyNMMMNyMMhsssssssssssssshmmmhssssssso
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime