flatcar / sysext-bakery

Recipes for baking systemd-sysext images
Apache License 2.0
72 stars 37 forks source link

Add keepalived #65

Closed jsalatiel closed 7 months ago

jsalatiel commented 7 months ago

Add keepalived sysext Currently there is no official container for keepalived, so this recipe builds it statically from a github tag. It requires docker for the building process.

jsalatiel commented 7 months ago

The updated version triggers ./create_keepalived_sysext.sh: line 25: ARCH: unbound variable

if  [ "${ARCH}" = "x86-64" ] || [ "${ARCH}" = "x86_64" ]; then

Does an unbound variable still fails inside a IF?

jsalatiel commented 7 months ago

stat: unrecognized option: format=%u:%g

jsalatiel commented 7 months ago

Working. Tested with create_keepalived_sysext.sh v2.2.8 keepalived

Parallel mksquashfs: Using 20 processors
Creating 4.0 filesystem on keepalived.raw, block size 131072.
[===============================================================================================================================================================================================================================|] 49/49 100%

Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
    compressed data, compressed metadata, compressed fragments,
    compressed xattrs, compressed ids
    duplicates are removed
Filesystem size 2279.78 Kbytes (2.23 Mbytes)
    41.43% of uncompressed filesystem size (5502.75 Kbytes)
Inode table size 404 bytes (0.39 Kbytes)
    47.20% of uncompressed inode table size (856 bytes)
Directory table size 275 bytes (0.27 Kbytes)
    49.55% of uncompressed directory table size (555 bytes)
Number of duplicate files found 0
Number of inodes 21
Number of files 7
Number of fragments 1
Number of symbolic links 1
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 13
Number of ids (unique uids + gids) 1
Number of uids 1
    root (0)
Number of gids 1
    root (0)
Created keepalived.raw
pothos commented 7 months ago

Tested the arm64 build and it worked, yet quite slow due to the qemu-user translation.