Skip to content

Latest commit

 

History

History
288 lines (241 loc) · 13.1 KB

CHANGES.md

File metadata and controls

288 lines (241 loc) · 13.1 KB

Changes

I will try to keep track of changes between releases here

Upcomming release, available in devel branch

  • renamed network-check.sh -> network-check to allign with iSH-IP-stats repo
  • fixed network-check.sh when run chrooted
  • env aok_this_is_dest_fs="Y"
  • ensure_ish_or_chrooted prefix
  • fixed ownership of rsync output
  • fixed root password will expire in 0 days warning
  • added exit codes in common_AOK/usr_local_bin/network-check.sh
  • removed obsoleted common_AOK/usr_local_bin/battery-charge
  • aok - improved option handling when chrooted
  • iSH-AOK check for 3.20 only when FS is Alpine
  • v0.19.16
  • utils.sh - improved handling of set/get kernel defaults
  • aok - isolate available options
  • preventing iSH-AOK from using Alpine 3.20
  • Alpine & Debin update cmds
  • debian_apt_update & alpine_apk_update
  • do_chorot - show details for colliding pids
  • reactivated -s Select Distro, options are Alpine/Debian
  • v0.19.15
  • changed network-check to use amazon.com since ping google.com often fails for ipv6 dns on Debian
  • v0.19.14
  • aok - Added handling of Boot cmd
  • v0.19.13
  • tools needed to support aok_launcher when not prebuilding
  • aok_launcher - handling of extra vterms during deploy
  • v0.19.12
  • tweaked get_lsb_release() & untar_file()
  • v0.19.11
  • Disabled build options for select and Devuan, since they dont work ATM
  • v0.19.10
  • mount /iCloud before set hostname
  • v0.19.9
  • tweaked aok settings and hostname detection
  • v0.19.8
  • handle AOK_HOSTNAME_SUFFIX in prebuild
  • v0.19.7
  • restore org uptime for ish-aok
  • v0.19.6
  • improved and disabled locale assignment
  • v0.19.5
  • fixed incorrect order of tasks when not prebuilding
  • v0.19.4
  • /usr/local/bin/uptime - better option handling
  • v0.19.3
  • manually naming tar if lsb_release is not available
  • removed bzip2 support - not compatible with pigz
  • v0.19.2
  • install 3.18 sqlite on Alpine >= 3.19
  • v0.19.1
  • renamed saved_fs -> aok_completed

0.19

  • simplified dest selection for wall
  • better check if pigz is installed
  • reshuffle of motd tasks
  • added tools: aok_fs-save & aok_fs-replace
  • updated skel files
  • improved package selection for old releases
  • added uptime -l to just show sysload

0.18

  • Default Alpine is now 3.20.1
  • Alpine 3.14 sudo (1.9.12_p2-r0) will be used for Alpine > 3.18 This solves the insta-crash if the default sudo is used.
  • more version checks on what CORE_APKS to install
  • improved handling of incompatible packages
  • /usr/local/bin/check-env-compatible self corrects procps uptime
  • reworked uptime to show iOS uptime with option -i
  • simplified detection of non-interactive shells
  • simplified shell detection
  • updated Alpine releases
  • better handling of recovery-mode

0.17

  • aok_launcher - console mode tails all log files, hit Ctrl-C to re-read in case something is added/removed, enable by doing apk -C on
  • added warning when mixing default launcher and console mode
  • inittab will halt for upto 10s to wait for aok_launcher to prepare console and logfile tracking.
  • replacing of some bins with aok replacementalso usable in updates
  • runbg notifies all sessions incl /dev/console of state change
  • better handling of chroot hostname
  • shutdown, halt & poweroff AOK replacements
  • halt will continue until it shuts system down, starting nicely, eventually doing it brutally.
  • improved wall handling of /dev/console
  • made error_msg state file with issue
  • aok_launcher: chk char-devs and stdio are fixed if need-be
  • split up some huge functions into parts
  • added uptime to Boot notation

0.16

task/do_chroot.sh mostly rewritten

  • Now able to run multiple chroots if given different mountpoints
  • Fully able to kill even still running chroots cleanly on both iSH and Linux
  • No longer uses a global pidfile

0.15

  • Added feature PREBUILD_ADDITIONAL_TASKS to allow for custom tasks to be done during prebuild
  • aok-versions (run on login) displays iSH AOK-FS & Alpine/Debian release
  • Debian uptime doesnt work on iSH - fixed by a replacement uptime that always displays 0.00, 0.00, 0.00
  • Setup can run on chrooted iSH
  • Improved propagating errors to terminate the build
  • moved Debian/ish_replacement_bins -> FamDeb
  • preventing mistaken error detection if CUSTOM_FILES_TEMPLATE is undefined
  • aok_launcher - added network-check
  • Save prebuild time & add it (if applicable) when displaying total deploy time
  • Corrected build time to include compress step

0.14.1

  • tools/upgrade-aok-fs.sh - changeed param handling

0.14

  • When Debian is installed on regular iSH, uptime needs to be replaced,
    since /proc/sysload is not available, original uptime is kept as /usr/bin/org-uptime
  • Added untar_file() to make sure pigz is always used for untaring (if available)
  • Ensures aok_imgs folder is created before generating compressed FS image
  • Added /usr/local/bin/aok-version - displaying AOK-FS, FS and iSH kernel releases
  • Expanded post deploy message in aok_launcher

0.11.5

  • Added pigz to Debian src image and Alpine packages (multithread tar/untar used when building images)
  • Debian src img with pigz

0.11.4

  • Changed sleep after aok_launcher vterm session 3s -> 1s
  • Debian src img latest updates: sudo
  • Some fixes for select_distro

0.11.3

  • New Launcher cmd 'aok_launcher'. This waits for runlevel default before
    progressing Allowing for things like clearing /run and updating motd durin
    g sysinit before initiating the first session. Will only wait for bootup
    on the 1st vterm. Before mounting a non AOK-FS, run aok -l default to
    ensure that a normal FS will boot properly.
  • a tool to configure most aspects of the AOK FS '/usr/local/bin/aok'
  • Removed custom logins, since all are now handled by aok_launcher, and configured via '/usr/local/bin/aok'
  • Updated skels (shell init files), added sys load and batt_lvl to bash & zsh
  • Deploy has been rewritten
  • Added usage of pigz for multithreaded tar/untar - greatly reducing deploy times!
  • New feature: logger
  • New tool in /usr/local/bin/network-check.sh - reports if world and DNS responds
  • /opt/AOK/tools/upgrade_aok_fs.sh - upgrades AOK-FS tools, with param configs, it will also update config files
  • as of 2024-02-06 sudo insta-crashes ish/ish-aok on Alpine 3.19 test: sudo ls

release 0.11.0

  • alternate hostname handling for iOS >= 17 rewritten. Will be automatically enabled during deployment if iOS >= 17, can be manually enabled/disabled by running /usr/local/bin/aok -H Now has two modes:

    1. Static - set custom hostname in /etc/hosts
    2. Dynamic - Using a source file fed by an iOS Shortcut tied to the iSH App starting.
  • setup_final_tasks.sh ensures all config variables referencing file items are synced during the first boot on the destination device. Any FIRST_BOOT_ADDITIONAL_TASKS or other scripts referred to must do their own iCloud syncing if need be. iCloud is somewhat inconsistent when it comes to scripts not present on the local device. Sometimes it fails, and sometimes it is synced on an as-needed basis. In general, the only safe bet is to do a find . > /dev/null This will print out each file not cached as it is cached, and once completed the matching file/files can be assumed to be locally available.

  • wrap deploy script in outer scr to prevent errors from triggering instant reboot, instead dropping the process to a root shell. This makes it possible to actually see what went wrong.

  • New Debian src-img: Debian10-7-aok-1.tgz

  • new Alpine tool apk_find_pkg - give it bin-name returns apk providing bin

  • uses installed /etc/skel when creating accounts instead of copying from /opt/AOK

  • select_distro uses exit 123 for select_distro_prepare if chrooted

  • Changed /usr/local/bin/aok to use echo instead of msg_3 to make it not look like a deploy item

  • tools/upgrade_aok_fs.sh make root: own /etc/skel files

  • added version notice to select the distro

  • rsync_chown() -> tools/utils

  • tweaked skel files

  • ash & bash different prompts - helps you see what the current shell is

  • setup_final_tasks.sh now defines a full PATH including /usr/local/bin

  • Alpine/etc/profile - added the sbins to common PATH, which makes sense since in most cases, this is run by root

  • added common display_instlled_versions function

release 0.10.0

  • Uses v3.18.4 for Alpine installs
  • if no sync file is given, defaults to use /etc/hostname
  • /etc/hostname is updated, on regular iSH just for information, since it cant be used to set hostname there
  • Better documentation of hostname_sync.sh and its inittab entries
  • typo fixed in copy "$hostname_cached" to /etc/hostname
  • updated skel files to handle the custom hostname, when needed
  • in setup_final_tasks.sh syncs potentially iCloud related PATH params to ensure content is up to date
  • bash prompt setting window title reverted back to ""
  • Reverted back to single quote for bash prompts otherwise $ wont display # for root
  • Additional checks for errors in sub-scripts
  • Check for error after all apt/apk actions
  • getty term linux -> xterm-256color to get default color prompt
  • myip rewritten to display all local devices
  • showip was found to be redundant, myip should be enough
  • whereisthis & whereami installs deps if needed on both Alpine & Debian
  • fixed a read without -r

release 0.9.10

  • Added iOS 17 hostname workarounds, added HOSTNAME_SYNC_FILE config
  • Added getty's to Alpine & Debian inittab, commented out by default
  • reintroduced some skel files unintentionally deleted - .tmux.conf & .vimrc
  • shutdown now mentions which host is being shutdown
  • tools/init_order info and test scripts to trace script init order

release 0.9.9

  • Devuan: Removed runlevel wait, and not usable prep steps
  • Debian & Devuan waits for runlevel default before deploy
  • New Debian src-img: Debian10-6-aok-2.tgz
  • preparing Debian FS for 1st boot
  • procps in general install, since it now works on iSH
  • Final tasks does a better job of adjusting config depending on iSH / iSH-AOK
  • Updated Alpine/usr_local_bin/aok_groups, to adjust package selection depending on release
  • Updated DOCS_APKS to better match what is installed
  • Changed Ash prompt somewhat to make it stand out from the Bash prompt. Also added a hint where to change if you do want them to look the same
  • ensure ~/.common_rc in sourced early, expanded explaination of purpose

release 0.9.8

  • Updated README - Performance issues running Debian
  • Simplified check when toggling Debian cron service
  • zsh history config
  • New Debian src-img: Debian10-6-aok-1.tgz
  • Added things to remove from Debian image
  • root shell can only be set to bash or ash during deploy, to ensure deploy can complete

release 0.9.7

  • Updated skel files, now ash & zsh setup like bash
  • New Debian src-img: Debian10-5-aok-1.tgz
  • Added my package adm tools Mapt & Mapk
  • Improved detection if already chrooted
  • Removed DEBUG_BUILD havent used it in a while and that stuff was going obsolete
  • Added check that sudo is installed
  • Reintroduced exit after pre-build
  • Improved check that chroot dest is not already being used in a chroot
  • Alpine & Debian if USE_CRON_SERVICE is not "Y", only actually disable service if it was active, to avoid pointless warning
  • do_chroot.sh uses /dev/pts again - some Debian packages gives a warning when not available
  • Processing DEB_PKGS_SKIP before DEB_PKGS
  • Added override option if do_chroot.sh recomends against running it
  • improved checks that chroot is not already active
  • improved cleanup of processes after chroot, also works when ps axe is not available

release 0.9.6

  • Sorted out the issue with do_chroot.sh, added a check that kills any stray processes created inside the chroot

release 0.9.5

  • Added warning not to start openrc service on Debian chroot with a Linux host. It will force you to reboot in order to reclaim /dev
  • New Debian src-img: Debian10-4-aok-2.tar.gz
  • Since all services are disabled in the src_img no longer any need to manually diable them during deploy. Has been so for ages, had just forgotten about it
  • filtering more env variables before chroot I spent a ridicilos time trying to use env -i, but with no success so far, what ends up happening is that the HOME is undefined in the chrooted env. Pretty sure its a trivial fix if you have that know-how - I unfortunately dont. common_AOK/cron/periodic
  • cron (dcron for Alpine) will always be installed and configured The service will only be activated if USE_CRON_SERVICE is "Y"
  • common_AOK/etc/skel/.tmux.conf - Fixed typo
  • nav_keys.sh - Can now be used in scrips, give desired navkey as param
  • removed Debian/etc/init.d/runbg - I figured out that the generic openrc runbg works just as fine on Debian
  • removed some utils - fingers purpose illudes me on a one user system, and the option to automount /iCloud has made a sepate util redundant common_AOK/usr_local_bin/finger common_AOK/usr_local_bin/iCloud

release 0.9.4

  • Adding repo Edge testing Both for edge and rescent Alpine releases. For non edge releases testing is hidden behind @testing
  • Alpine/usr_local_sbin/update_motd now can extract Alpine relese both from regular releases and edge ones.
  • Rewrote handling of edge releases, now integrated with rest of build.
  • For Alpine builds, check that ALPINE_VERSION is defined

release 0.9.3

Changes not logged up to this point