notes/os/linux/packaging/ostree/docs/presentations.txt
Ihar Hancharenka 74aea95fa2 m
2024-05-18 14:11:00 +03:00

98 строки
3.4 KiB
Plaintext

2023
TheLinuxFoundation - Ostree for the Uninitiated - What You Need to Get Up and Running with Ostree on Your...- Davis Roman of 46:26
https://www.youtube.com/watch?v=_CwGUt0CpvU
! ostree remote add ...
! remote summary <name>
! ostree diff <name>^ <name>
! ostree admin upgrade
! ostree pull <name>:<hash>
! ostree static-delta generate <refname> --from=<refname>^ --to=<refname> ...
! repo setup
! repo sync
! ostree refs
! ostree log <name>
! ostree --repo=/ostree/repo init --mode=archive-z2
! ~/.config/ostree
! ostree summary -v
! ostree admin unlock --hotfix
! ostree admin config-diff
! 33:00 phys/virt
! /boot/loader/uEnv.txt
! /boot/ostree
! /ostree
! 35:00 initramfs helps with chicken/egg problem
! on boot, uboot instructs the kernel to start
! the initramfs which contains a tiny fs with an init script
! whose job is to parse the kernel cmd-line to figure out which deployment to use
! mkdir -p /sysroot
! ostree_sysroot=$(get_ostree_sysroot)
! mount "$ostree_sysroot" /sysroot
! ostree-prepare-root /sysroot
! log_info "Switching to rootfs"
! exec switch_root /sysroot /sbin/init
! 37:00
! after building initramfs,
! image_types_ostree.bbclass commits yocto's final rootfs into the buildsystem's ostree repository
!
2021
Pingvinus - Fedora 35 of 6:52
https://www.youtube.com/watch?v=mNziXTfZcGk
2020
Pynkin - OSTree CLI for OS management 21:00 of 25:00
https://www.youtube.com/watch?v=B0xvrXkEwr4
https://www.collabora.com/assets/pdfs/OSTree_CLI_for_OS_management.pdf
! libostre/ostree cli tool
OSTree repository
● ls -l /ostree/
● ls -l /ostree/repo
● cat /ostree/repo/config
● ls -1 /ostree/deploy/
● ls -l /ostree/deploy/apertis/
! special treatements
! /boot
! /etc
! /var
! ostree remote list
! ostree config --group 'remote "origin"' get url
! https://images.apertis.ort/ostree/repo
! ostree admin upgrade
! ostree admin status
! apertis <hash1> (pending)
! apertis <hash2>
! # after reboot
! apertis <hash1>
! apertis <hash2> (rollback)
! ostree refs
! ostree/0/1/0
! ostree/0/1/1
! ostree rev-parse origin:apertis/v2020pre/armhf-uboot/minimal
! <some-hash>
! find /ostree/repo/ -name "*commit*"
! /ostree/repo/objects/3a/<hash1>.commit
! /ostree/repo/objects/3a/<hash1>.commitmeta
! ...
! ostree show origin:apertis/v2020pre/armhf-uboot/minimal [--raw]
! commit ...
! ContentChecksum: ...
! Date ...
! ostree show origin:apertis/v2020pre/armhf-uboot/minimal --raw
! ... additional info (like bindings) in json
! ostree admin config-diff
! output in a git-diff format
! ostree fsck -a --delete
! ostree pull origin ... # to restore
! ostree prune ... misc options
! ostree admin status
! ostree admin undeploy 1
! ostree admin unlock
2018
Pynkin - OSTree Atomic Updates in Git Style ru of 23:57
https://www.youtube.com/watch?v=N0expbwB0OM
https://www.youtube.com/watch?v=5LE8XF0rUak
! ostree objects: .commit, .dirtree, .file
2014
RedHatCzech - Colin Walters - OSTree: A middle ground between packages and images of 32:01
https://www.youtube.com/watch?v=Hy0ZEHPXJ9Q
! tree also requires naming (vs anoymous subset of ...)