From 9d9f986d44a69e7dd7baea4f07b7eb7fbf55adf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 16 Feb 2024 15:04:32 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 elemental-toolkit revision c80ea35e37f8c11adc7e7804297c8c71 --- .gitattributes | 23 + _service | 18 + _servicedata | 8 + ...-toolkit-1.3.0+git20240207.f3d8258.obscpio | 3 + elemental-toolkit.changes | 664 ++++++++++++++++++ elemental-toolkit.obsinfo | 4 + elemental-toolkit.spec | 87 +++ 7 files changed, 807 insertions(+) create mode 100644 .gitattributes create mode 100644 _service create mode 100644 _servicedata create mode 100644 elemental-toolkit-1.3.0+git20240207.f3d8258.obscpio create mode 100644 elemental-toolkit.changes create mode 100644 elemental-toolkit.obsinfo create mode 100644 elemental-toolkit.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service new file mode 100644 index 0000000..82761d8 --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + https://github.com/rancher/elemental-toolkit.git + elemental-toolkit + git + .git + main + @PARENT_TAG@+git%cd.%h + v([^-]+)-?.*(\+git.*) + \1\2 + enable + .obs/specfile/elemental-toolkit.spec + + + + elemental-toolkit + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..21854a0 --- /dev/null +++ b/_servicedata @@ -0,0 +1,8 @@ + + + https://github.com/rancher-sandbox/elemental.git + 7e946ebb883980022bd6d53b9be7873937e05ccc + https://github.com/rancher/elemental-cli.git + 0e836a9dcd20f160d22b061ef70f724c370a90cc + https://github.com/rancher/elemental-toolkit.git + f3d825854ad6d8d6e1953796ebef238ae150d65c \ No newline at end of file diff --git a/elemental-toolkit-1.3.0+git20240207.f3d8258.obscpio b/elemental-toolkit-1.3.0+git20240207.f3d8258.obscpio new file mode 100644 index 0000000..2eeedd8 --- /dev/null +++ b/elemental-toolkit-1.3.0+git20240207.f3d8258.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3024275745994012bae08c334cd3172ff63a12f51612c4ff4d756bc10ab6c3f +size 42497549 diff --git a/elemental-toolkit.changes b/elemental-toolkit.changes new file mode 100644 index 0000000..ad08eb7 --- /dev/null +++ b/elemental-toolkit.changes @@ -0,0 +1,664 @@ +------------------------------------------------------------------- +Fri Feb 09 10:32:17 UTC 2024 - kkaempf@suse.com + +- Update to version 1.3.0+git20240207.f3d8258: + * Remove references to old ACTIVE and PASSIVE images + * Make persistent volume a nested structure of persistent data + * Add Volumes in Mount spec + * Prevent unnecessary copy of image tree to tmp folder + * Install podman in example Dockerfiles + * Bump github actions (#1933) + * Add back the BindPath for /oem + * Bump yip to v1.4.10 (#1926) + * Remove BindMount for /oem in initramfs stage (#1934) + * Bump the go_modules group across 1 directories with 1 update (#1932) + * Add dependabot config (#1929) + * Refactor to switch to snapshotter interface (#1906) + * This commit does removes the assumption of a /boot folder + * Test that persistence is working (#1919) + * Make mount setup more dynamic based on detected partitions + * Include elemental partitions in mount command + * Update dependencies (#1917) + * Use rancher/yip v1.4.8 + * Imporve support for old boot arguments + * Bind mount /oem in elemental-setup-initramfs + * Use v1.3.0 as upgrade base image + * Install grub.cfg into EFI System Partition (#1904) + * Bump twpayne/vfs module to latest version + * Fix license template + * Include SUT utilities within the repository + * Mount readonly EFI partition to /run/elemental/efi (#1905) + * Move grub-config to /etc/elemental + * Fix partitions typo + * Change default rootfs feature + * Update copyright year (2024) + * Update github.com/go-git/go-git to v5.11.0 + * Add default cloud-init-paths to build commands (#1893) + * Add loopdevice implementation (#1891) + * Split arm and x86_64 tests + * Adding new snapshotter interface + * Fix typo in Makefile build-rpi-disk target + * Change trigger to pull_request_target (#1889) + * Add disable-boot-entry flag to reset-command (#1888) + * Changes to cleanup-cache workflow (#1887) + * Make sure the module-setup.sh picks the right paths for systemd units + * Add permissions to delete cache items + * Load mount-layout from .env-files (#1885) + * Drop elemental object and make elemental methods stateless + * Refactor some elemental package methods to be used as stand alone functions + * Cleanup caches when PR is closed + * Add backwards-compatibility for liveCD detection + * Rename overlay -> ephemeral mounts + * Fix tumbleweed example + * Make network configuration part of the example, not defaults + * Do not run CI on pushes to main, the test already happens on the PR + * Fix RISCV64 Tumbleweed example build + * add btrfs support in partitioner + * Wrap mount.Interface to our own interface (#1875) + * Update go in build-docs action + * Refactor early system mounting (#1866) + * Add force flag in systemd-firstboot yip's plugin so default files are overwritten if they are already existing + * Make sure it triggers PR workflow + * Bump yip + * Add other example distros (#1868) + * Make lint happy, Runner.error method was unused + * Log errors of runner commands only in debug mode + * Fix initrd and kernel ISO paths + * Refactor grub as a bootloader interface + * Add target for rpi disk (#1859) + * Drop ARM32 build + * Add support for RISC-V 64bit architecture + * Update golang.org/x/net dependency + * Remove existing file during build-disk (#1857) + * Configurable build-disk deploy command + * Move recovery hostname to cloud-config-defaults + * Update release workflow + * Improve CI stability + * Try different drivers for macOS + * Add installer test + +------------------------------------------------------------------- +Tue Dec 12 18:11:52 UTC 2023 - David Cassany + +- Update to version 1.1.1 + +------------------------------------------------------------------- +Fri Dec 01 13:37:00 UTC 2023 - dcassany@suse.com + +* Log errors of runner commands only in debug mode + +------------------------------------------------------------------- +Tue Nov 28 18:25:02 UTC 2023 - dcassany@suse.com + +- Update to version 1.1.0+git20231027.9c55b9d7: + * Use build-disk command (#1847) + * Make use of partx instead of partprobe + * build-disk command (#1794) + * Ensure the cache is renewed on source changes + * Improve test coverage and fix recovery image label setting + * Improve state.yaml file loading + * Remove deprecated cmdline options + * Fix partitions typo (#1835) + * Move grub bootargs.cfg into new feature + * Worflow was still trying to build the already dropped builder image + +------------------------------------------------------------------- +Mon Nov 28 11:13:36 UTC 2022 - Klaus Kämpf + +- elemental-cli needs lvm2 for running blkdeactivate. + +------------------------------------------------------------------- +Fri Sep 30 10:18:31 UTC 2022 - David Cassany + +- Improve requirements in spec + +------------------------------------------------------------------- +Fri Sep 23 15:29:03 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.16+git20220923.0e836a9: + * Drop binary signature for now (#334) + * Fix cosign location + * Fix signatures for binaries and images (#333) + +------------------------------------------------------------------- +Fri Sep 23 13:54:13 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.16+git20220923.075f8ae: + * Stop testing on image push/release (#332) + * Remove sanity check for SUSE based systems on efi installation (#331) + * [auto] Update cmd docs (#328) + +------------------------------------------------------------------- +Fri Sep 23 11:56:56 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220923.33d6aba: + * Rework SetDefaultGrubEntry (#330) + * Add CreateBootEntry to EFI install/reset (#326) + +------------------------------------------------------------------- +Fri Sep 23 08:17:26 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220922.3bfae9c: + * Add secure boot for EFI ISO images (#327) + +------------------------------------------------------------------- +Thu Sep 22 07:36:40 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220922.06e0bbe: + * [auto] Update cmd docs (#318) + * Keep working dir after a chroot call (#324) + * Create ISO for EFI only or BIOS only, not both (#322) + * Fix image tests to use an up to date system for testing the install (#323) + +------------------------------------------------------------------- +Tue Sep 20 10:46:38 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220919.129edf9: + * Fix disk partitioning (#321) + +------------------------------------------------------------------- +Mon Sep 19 14:30:53 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220919.6f62fa2: + * Rework efi grub install (#317) + * Include bootloader arrangement in build-iso (#316) + +------------------------------------------------------------------- +Mon Sep 12 13:23:20 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220907.0ff8246: + * Fix GO-2022-0244 (#315) + * Fix GO-2022-0586 (#314) + +------------------------------------------------------------------- +Fri Sep 02 06:07:18 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220831.b488ce7: + * Bump cosign installer + * Fix cosign command (#312) + +------------------------------------------------------------------- +Wed Aug 31 12:34:13 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220831.efe83cf: + * Fix image signing (#311) + +------------------------------------------------------------------- +Mon Aug 29 13:27:50 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220815.c9a862d: + * Add extra partitions config on installation (#306) + * Update docker-master.yaml + +------------------------------------------------------------------- +Thu Aug 11 13:16:08 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220811.07f8e36: + * Drop luet init from BuildConfig (#310) + * cosign the release artifacts (#308) + * Fix logging coming from luet (#309) + +------------------------------------------------------------------- +Tue Aug 02 11:26:25 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220802.8a7e7a1: + * Fix branch name for github workflow + * Push to REPO-ci on master merge (#301) + +------------------------------------------------------------------- +Fri Jul 29 15:40:09 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220729.ae4f000: + * Set the message of what we are setting as default properly (#300) + +------------------------------------------------------------------- +Fri Jul 29 12:11:28 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220729.87f0cb4: + * Allow overriding default grub entry or fallback to default (#299) + * Log error on upgrade + +------------------------------------------------------------------- +Tue Jul 26 13:17:05 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220726.dfb21b4: + * [auto] Update cmd docs + +------------------------------------------------------------------- +Mon Jul 25 10:13:38 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220725.a0b8053: + * Go mod vendor + * Unify cmd-line usage + +------------------------------------------------------------------- +Thu Jul 21 14:08:15 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220721.be54398: + * Docker fixes (#289) + +------------------------------------------------------------------- +Thu Jul 21 08:48:31 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220721.0f0dccb: + * [auto] Update cmd docs (#288) + +------------------------------------------------------------------- +Wed Jul 20 09:05:08 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220720.2eb14f6: + * Allow multiple cloud-init files in installation spec (#287) + +------------------------------------------------------------------- +Tue Jul 19 09:10:53 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220719.799d323: + * elemental install: allow to get the EJECT_CD option from the env + +------------------------------------------------------------------- +Tue Jul 12 15:32:14 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220707.f1fabd4: + * Bump yip dependency (#282) + +------------------------------------------------------------------- +Wed Jul 06 12:00:51 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220706.d574597: + * Remove a leftover file (#281) + * Produce state.yaml files on install, upgrade and reset commands (#278) + +------------------------------------------------------------------- +Fri Jun 24 08:08:24 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220622.a81c51f: + * [auto] Update cmd docs (#274) + * More improvements to auto Pr (#273) + * Improve auto docs PR (#271) + * Set serial tests with ginkgo dsl (#269) + * Add vendor dir with deps (#266) + * Fallback to docker type if URI source is of an unknown type (#264) + * tests: add unit test for CalcFileChecksum + * build-iso: add computation of the sha256 checksum + * Add flag to fully disable compression for squashfs (#257) + * Ensure we properly propagate repository arch configuration in repos (#260) + * Fix buld-iso (#259) + * rawdisk: Consume repositories from top level YAML (#255) + * Bump ghw and fix labels (#253) + * Fix build-iso command when no arguments are provided (#256) + +------------------------------------------------------------------- +Mon Jun 13 10:24:17 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220609.2707687: + * build-iso: Sanitize config file for build-iso (#251) + * Fix default config for RawDisk (#249) + * Long info for build-disk including the SOURCE info (#252) + * Drop uneeded root test and add mroe tests for syscall (#250) + * [auto] Update cmd docs (#247) + * Improve SELinux labeling commands (#245) + * increase reset test (#241) + * utils: Drop NewSourceGuessingType() (#242) + * build-iso: Improve validation for rootfs source image (#234) + * [auto] Update cmd docs (#240) + * Split OEM reset from Persistent reset (#239) + * Relabel SELinux in a chroot env (#230) + +------------------------------------------------------------------- +Tue Jun 07 12:03:07 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220606.71c35d2: + * Fix binary name (#237) + * Rename package to rancher/elemental-cli (#236) + +------------------------------------------------------------------- +Wed Jun 01 08:41:47 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220601.1554b61: + * Fail disk build if luet errors (#233) + * Use a channel to close rsync monitoring goroutine (#231) + * Ensure recovery image file is set according to the filesystem (#229) + * Add lvm2 to docker image (#227) + * Bump luet and wire up logger from elemental (#226) + * Move config fixtures to test/fixtures, add test case (#225) + * Fix grub-entry-name parsing from config files (#224) + * Report rsync status (#216) + * [auto] Update cmd docs (#222) + * Switch option for using mtree plugin (#208) + +------------------------------------------------------------------- +Tue May 31 13:47:04 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.15+git20220531.7e946eb: + * Use a channel to close rsync monitoring goroutine (#231) + * Ensure recovery image file is set according to the filesystem (#229) + * Add lvm2 to docker image (#227) + * Bump luet and wire up logger from elemental (#226) + * Move config fixtures to test/fixtures, add test case (#225) + * Fix grub-entry-name parsing from config files (#224) + * Report rsync status (#216) + * [auto] Update cmd docs (#222) + * Switch option for using mtree plugin (#208) + * Deactivate unmounted lvm volumes before partitioning (#221) + +------------------------------------------------------------------- +Tue May 24 10:37:29 UTC 2022 - Klaus Kämpf + +- renamed to elemental-cli + +------------------------------------------------------------------- +Tue May 24 10:31:59 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14-1+git20220523.605346d: + * Adding support for additional environment variables to support ros-installer (#217) + * Use /etc/os-release on install and reset (#218) + * Use equivalent logic in run and build commands to load configuration (#210) + * Introduce ReferenceId for Repository (#215) + * Use litter lib to dump full cfg (#213) + * Fix passing repositories to luet channel unpack (#214) + * Fix efi image size calculation (#211) + * Add arch to config based on current arch (#209) + * Make use of elemental API in build commands (#207) + * [auto] Update cmd docs (#206) + * Refactor runconfig (#189) + +------------------------------------------------------------------- +Tue May 24 09:54:15 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14-1+git20220517.1a7a85c: + * [auto] Update cmd docs (#204) + * Include other configs on config load (#203) + * Add --local option to install, build-iso, upgrade (#185) + * Update the system in the dockerfile (#202) + * [auto] Update cmd docs (#200) + * Small fix for autogenerated docs + * Add job to auto create PR for updated docs (#195) + * Try to fix go cache on CI (#199) + * Also set temp dir for luet pkgcache (#196) + * Update go.mod to fix cache (#197) + * Try to get a decent luet tempdir (#193) + * Add docs for commands and generator (#192) + * Protect against wrong squshfs options (#190) + * Fix loading squash options (#188) + * Squashfs compression (#187) + * Set default config dir to /etc/elemental (#181) + * Introduce generic arch flag for build commands (#182) + * Fix typo in Config mapstructure mapping (#180) + * Ensure ISO's defaults are applied (#179) + * Improve build-iso flags (#177) + * Use the arch for the repo (#176) + * Add default values if config is empty (#174) + * Add build-iso command defaults (#173) + * Expand build disk (#171) + * Create basic dir structure for isos with proper permissions (#170) + * Fix --date default (#169) + * Add build-disk command (#162) + * Fix build-iso kernel discovery and root permissions (#168) + * Exclude only root-located directories (#165) + +------------------------------------------------------------------- +Fri May 20 07:48:09 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220519.5766180: + * Fix efi image size calculation (#211) + * Add arch to config based on current arch (#209) + +------------------------------------------------------------------- +Thu May 19 09:01:47 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220519.de33226: + * Make use of elemental API in build commands (#207) + * [auto] Update cmd docs (#206) + * Refactor runconfig (#189) + * [auto] Update cmd docs (#204) + * Include other configs on config load (#203) + * Add --local option to install, build-iso, upgrade (#185) + +------------------------------------------------------------------- +Fri May 13 09:33:21 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220513.4ed4c33: + * Update the system in the dockerfile (#202) + * [auto] Update cmd docs (#200) + * Small fix for autogenerated docs + * Add job to auto create PR for updated docs (#195) + * Try to fix go cache on CI (#199) + +------------------------------------------------------------------- +Wed May 11 07:54:35 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220511.ce2dd48: + * Also set temp dir for luet pkgcache (#196) + * Update go.mod to fix cache (#197) + * Try to get a decent luet tempdir (#193) + * Add docs for commands and generator (#192) + +------------------------------------------------------------------- +Tue May 10 06:44:46 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220509.2dec7d7: + * Protect against wrong squshfs options (#190) + * Fix loading squash options (#188) + * Squashfs compression (#187) + * Set default config dir to /etc/elemental (#181) + +------------------------------------------------------------------- +Fri May 06 07:43:38 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220504.dc0d414: + * Introduce generic arch flag for build commands (#182) + +------------------------------------------------------------------- +Mon May 02 15:50:38 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220502.62b0cfd: + * Fix typo in Config mapstructure mapping (#180) + * Ensure ISO's defaults are applied (#179) + +------------------------------------------------------------------- +Thu Apr 28 08:33:30 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220428.49299da: + * Improve build-iso flags (#177) + * Use the arch for the repo (#176) + * Add default values if config is empty (#174) + * Add build-iso command defaults (#173) + * Expand build disk (#171) + +------------------------------------------------------------------- +Mon Apr 25 11:34:56 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.14+git20220425.36c1b6a: + * Create basic dir structure for isos with proper permissions (#170) + * Fix --date default (#169) + * Add build-disk command (#162) + * Fix build-iso kernel discovery and root permissions (#168) + * Exclude only root-located directories (#165) + * Properly pass repos to build-iso (#163) + * Extend LuetInterface to support custom repositories (#161) + * build-iso command first round implementation (#160) + +------------------------------------------------------------------- +Tue Apr 12 10:43:14 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220407.f122839: + * Move out generic configuration from RunConfig (#159) + +------------------------------------------------------------------- +Thu Apr 07 09:05:10 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220405.89d323a: + * Drop lsblk in favour of ghw library (#155) + * Add a eject-cd flag for install (#156) + * Relocate GPT headers for expanded disks (#158) + * Bump yip to master (#157) + * Use local context for docker building (#153) + * Test the docker image install over loop device (#149) + * Missing one step skipped woops (#152) + * Dont run tests if only Dockerfile has changed (#151) + * Move config options into the config package (#148) + * Add grub2-efi image into the docker image (#150) + * Remove blkid dependency and limit lsblk usage (#147) + * Add logger to runner and log commands on debug (#142) + * Fix docker building on tag (#146) + * Sync locally build docker names with remote (#145) + * Fix load and push not being able to be used at the same time (#144) + * Dockerfile changes (#143) + * Use auto for FS in upgrade (#141) + * Keep partition device path after creating a new partition (#140) + * Adapts action tests to new fs interface (#139) + * Fix elemental package tests, no root required (#138) + * Use default dir permissions constant (#137) + * Fix directory permissions (#136) + +------------------------------------------------------------------- +Thu Mar 10 15:46:50 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220310.21e7373: + * add channel support to install action (#132) + * Ensure we use configured labels in reset command, not defaults (#133) + * Check partial yaml unmarshal errors and unify FS (#125) + * Add dockerfile (#131) + +------------------------------------------------------------------- +Wed Mar 09 09:26:16 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220308.f91b2f6: + * Add checkRoot helper for cmd and add it to root commands (#129) + * Fix variables initialization in tests (#128) + * Small fixes (#127) + +------------------------------------------------------------------- +Mon Mar 07 11:18:43 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220303.491b27d: + * Use golangci for lint+license check (#123) + +------------------------------------------------------------------- +Tue Mar 01 13:28:29 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220301.c7e1cb7: + * Use grab library as the http client (#121) + +------------------------------------------------------------------- +Fri Feb 25 17:44:57 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220225.dd23b93: + * Support loop mount on isos (#119) + +------------------------------------------------------------------- +Fri Feb 25 12:43:31 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220225.e9b4112: + * Allow to set GIT_TAG and GIT_COMMIT when calling make (#118) + +------------------------------------------------------------------- +Fri Feb 25 10:45:39 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220225.38414ba: + * Increase shared flags between install, upgrade and reset (#117) + * Full installation from downloaded ISO (#116) + * Define all needed images in runconfig (#114) + * Fixups to upgrade process (#115) + * CLI fixups (#113) + * Ensure cloudinit tests can be executed in parallel (#112) + * Implement yip's Layout plugin using partitioner package (#111) + * codecov: split cmd from pkg coverage (#109) + * upgrade: always try to remount state partition (#108) + * Upgrade fixes for paths and mounts (#107) + +------------------------------------------------------------------- +Fri Feb 25 10:44:56 UTC 2022 - Klaus Kämpf + +- rename to elemental + +------------------------------------------------------------------- +Fri Feb 25 09:44:32 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.13+git20220225.38414ba: + * Increase shared flags between install, upgrade and reset (#117) + * Full installation from downloaded ISO (#116) + +------------------------------------------------------------------- +Tue Feb 22 15:13:50 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.12+git20220221.13c2b6f: + * Define all needed images in runconfig (#114) + * Fixups to upgrade process (#115) + +------------------------------------------------------------------- +Mon Feb 21 13:34:58 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.12+git20220218.9f1859e: + * CLI fixups (#113) + * Ensure cloudinit tests can be executed in parallel (#112) + * Implement yip's Layout plugin using partitioner package (#111) + * codecov: split cmd from pkg coverage (#109) + +------------------------------------------------------------------- +Thu Feb 17 10:14:13 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.12+git20220217.a95088a: + * upgrade: always try to remount state partition (#108) + * Upgrade fixes for paths and mounts (#107) + * cli: read target also from config (#106) + * Upgrade: Fix upgradestateDir (#105) + * Be more smart about upgrade dir (#104) + * Refactor CopyActive method to turn tin CopyImage (#95) + * Create new command (#96) + * Also check the system label to see if we booting from recovery (#102) + * Fix upgrade source from channel in recovery (#101) + * Upgrade: only add mounts for chroot if they have a mountpoint (#100) + * cloud-init: Process users before SSH (#99) + * Fix luet not having a logger and changing context (#98) + * Remove a Focus leftover from action tests (#97) + * Rework flags to unify some of them (#94) + * syscall test (#93) + * Adding CleanStack utility (#92) + +------------------------------------------------------------------- +Wed Feb 09 15:43:13 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.12+git20220209.745468a: + * Upgrade improvements (#91) + * Add reset command (#86) + * upgrade from channel (#81) + * Ensure make fmt returns error if some file is changed (#90) + * Changes by running 'make fmt' (#89) + * Unpack local flag v2 (#87) + * Add a Chroot.RunCallback method (#84) + * Make action setup methods public (#83) + * Install config refactor (#72) + * Add cache for go modules and build to CI (#76) + * Rename 'PLabel' form v1.Partition to 'Name' (#74) + * Move to ginkgo v2 (#73) + * Add upgrade command (#59) + +------------------------------------------------------------------- +Thu Feb 03 09:21:03 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.12+git20220201.42f728f: + * Adding incompatible flags tests in install command (#67) + * Add --reboot and --poweroff flags (#66) + * Do not use cosign luet plugin (#65) + +------------------------------------------------------------------- +Mon Jan 31 15:28:50 UTC 2022 - kkaempf@suse.com + +- Update to version 0.0.12+git20220131.04e7e83: + * Hide yip errors under debug (#64) + * Update go.mod (#63) + * Disable cosign by default (#62) + * Fixes grub tests flakyness (#61) + * Ensure RunConfig parameters are writable by Viper (#60) + * Add retries logic to get devices by label (#57) + * Add --logfile and --quiet options to root (#56) + * Add plugin flags to pull-image (#55) + * Use ext2 FS for images (#54) + * Adds pull-image (#52) + +------------------------------------------------------------------- +Mon Jan 31 15:25:26 UTC 2022 - Klaus Kämpf + +- Initial version 0.0.12 + diff --git a/elemental-toolkit.obsinfo b/elemental-toolkit.obsinfo new file mode 100644 index 0000000..660f5a2 --- /dev/null +++ b/elemental-toolkit.obsinfo @@ -0,0 +1,4 @@ +name: elemental-toolkit +version: 1.3.0+git20240207.f3d8258 +mtime: 1707333843 +commit: f3d825854ad6d8d6e1953796ebef238ae150d65c diff --git a/elemental-toolkit.spec b/elemental-toolkit.spec new file mode 100644 index 0000000..01235de --- /dev/null +++ b/elemental-toolkit.spec @@ -0,0 +1,87 @@ +# +# spec file for package elemental-toolkit +# +# Copyright (c) 2022 - 2023 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: elemental-toolkit +Version: 1.3.0+git20240207.f3d8258 +Release: 0 +Summary: The command line client for Elemental +License: Apache-2.0 +Group: System/Management +Url: https://github.com/rancher/elemental-toolkit +Source: %{name}-%{version}.tar +Source1: %{name}.obsinfo + +Requires: dosfstools +Requires: e2fsprogs +# for blkdeactivate +Requires: lvm2 +Requires: parted +Requires: rsync +Requires: udev +Requires: xfsprogs +Requires: xorriso +Requires: mtools +Requires: util-linux +Requires: gptfdisk + +%if 0%{?suse_version} +BuildRequires: golang(API) >= 1.18 +BuildRequires: golang-packaging +%{go_provides} +%else +%global goipath google.golang.org/api +%global forgeurl https://github.com/rancher/elemental-toolkit +%global commit d1ae3f9a425de2618f9058f3b37583ef3ce52c7d +%gometa +%if (0%{?centos_version} == 800) || (0%{?rhel_version} == 800) +BuildRequires: go1.20 +%else +BuildRequires: compiler(go-compiler) +%endif +%endif +BuildRequires: xz + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This package provides a universal command line client to access +Elemental functionality + +%prep +%setup -q +cp %{S:1} . + +%build +export GIT_TAG=`echo "%{version}" | cut -d "+" -f 1` +GIT_COMMIT=$(cat %{name}.obsinfo | grep commit: | cut -d" " -f 2) +export GIT_COMMIT=${GIT_COMMIT:0:8} +MTIME=$(cat %{name}.obsinfo | grep mtime: | cut -d" " -f 2) +export COMMITDATE=$(date -d @${MTIME} +%Y%m%d) +make build-cli + + +%install +mkdir -p %{buildroot}%{_bindir} +install -m755 build/elemental %{buildroot}%{_bindir} + +%files +%defattr(-,root,root,-) +%license LICENSE +%{_bindir}/* + +%changelog