| Tim Windelschmidt | 6d33a43 | 2025-02-04 14:34:25 +0100 | [diff] [blame] | 1 | // Copyright The Monogon Project Authors. |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 2 | // SPDX-License-Identifier: Apache-2.0 |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 3 | |
| 4 | // Installer creates a Metropolis image at a suitable block device based on the |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 5 | // OS image present in the installation medium's ESP, after which it reboots. |
| 6 | // It's meant to be used as an init process. |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 7 | package main |
| 8 | |
| 9 | import ( |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 10 | "context" |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 11 | _ "embed" |
| Lorenz Brun | 57d06a7 | 2022-01-13 14:12:27 +0100 | [diff] [blame] | 12 | "errors" |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 13 | "fmt" |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 14 | "os" |
| 15 | "path/filepath" |
| 16 | "strings" |
| Lorenz Brun | 57d06a7 | 2022-01-13 14:12:27 +0100 | [diff] [blame] | 17 | "time" |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 18 | |
| 19 | "golang.org/x/sys/unix" |
| Serge Bazanski | 9778322 | 2021-12-14 16:04:26 +0100 | [diff] [blame] | 20 | |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 21 | "source.monogon.dev/go/logging" |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 22 | "source.monogon.dev/metropolis/installer/install" |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 23 | "source.monogon.dev/metropolis/node/core/devmgr" |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 24 | "source.monogon.dev/osbase/blockdev" |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 25 | "source.monogon.dev/osbase/bringup" |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 26 | "source.monogon.dev/osbase/efivarfs" |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 27 | "source.monogon.dev/osbase/oci" |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 28 | "source.monogon.dev/osbase/oci/osimage" |
| Jan Schär | c1b6df4 | 2025-03-20 08:52:18 +0000 | [diff] [blame] | 29 | "source.monogon.dev/osbase/structfs" |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 30 | "source.monogon.dev/osbase/supervisor" |
| Tim Windelschmidt | 9f21f53 | 2024-05-07 15:14:20 +0200 | [diff] [blame] | 31 | "source.monogon.dev/osbase/sysfs" |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 32 | ) |
| 33 | |
| Jan Schär | 69b7687 | 2025-05-14 16:39:47 +0000 | [diff] [blame] | 34 | //go:embed metropolis/node/abloader/abloader_bin.efi |
| Lorenz Brun | 54a5a05 | 2023-10-02 16:40:11 +0200 | [diff] [blame] | 35 | var abloader []byte |
| 36 | |
| Jan Schär | 36f3b6d | 2025-05-20 09:05:12 +0000 | [diff] [blame] | 37 | //go:embed build/copyright_line.txt |
| Jan Schär | 10670e5 | 2025-04-23 12:54:48 +0000 | [diff] [blame] | 38 | var copyrightLine string |
| 39 | |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 40 | const mib = 1024 * 1024 |
| 41 | |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 42 | // mountInstallerESP mounts the filesystem the installer was loaded from based |
| 43 | // on espPath, which must point to the appropriate partition block device. The |
| 44 | // filesystem is mounted at /installer. |
| 45 | func mountInstallerESP(espPath string) error { |
| 46 | // Create the mountpoint. |
| 47 | if err := unix.Mkdir("/installer", 0700); err != nil { |
| 48 | return fmt.Errorf("couldn't create the installer mountpoint: %w", err) |
| 49 | } |
| 50 | // Mount the filesystem. |
| 51 | if err := unix.Mount(espPath, "/installer", "vfat", unix.MS_NOEXEC|unix.MS_RDONLY, ""); err != nil { |
| 52 | return fmt.Errorf("couldn't mount the installer ESP (%q -> %q): %w", espPath, "/installer", err) |
| 53 | } |
| 54 | return nil |
| 55 | } |
| 56 | |
| 57 | // findInstallableBlockDevices returns names of all the block devices suitable |
| 58 | // for hosting a Metropolis installation, limited by the size expressed in |
| 59 | // bytes minSize. The install medium espDev will be excluded from the result. |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 60 | func findInstallableBlockDevices(l logging.Leveled, espDev string, minSize uint64) ([]string, error) { |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 61 | // Use the partition's name to find and return the name of its parent |
| 62 | // device. It will be excluded from the list of suitable target devices. |
| 63 | srcDev, err := sysfs.ParentBlockDevice(espDev) |
| Tim Windelschmidt | cc27faa | 2024-08-01 02:18:35 +0200 | [diff] [blame] | 64 | if err != nil { |
| Tim Windelschmidt | 096654a | 2024-04-18 23:10:19 +0200 | [diff] [blame] | 65 | return nil, fmt.Errorf("failed to fetch parent device: %w", err) |
| 66 | } |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 67 | // Build the exclusion list containing forbidden handle prefixes. |
| 68 | exclude := []string{"dm-", "zram", "ram", "loop", srcDev} |
| 69 | |
| 70 | // Get the block device handles by looking up directory contents. |
| 71 | const blkDirPath = "/sys/class/block" |
| 72 | blkDevs, err := os.ReadDir(blkDirPath) |
| 73 | if err != nil { |
| 74 | return nil, fmt.Errorf("couldn't read %q: %w", blkDirPath, err) |
| 75 | } |
| 76 | // Iterate over the handles, skipping any block device that either points to |
| 77 | // a partition, matches the exclusion list, or is smaller than minSize. |
| 78 | var suitable []string |
| 79 | probeLoop: |
| 80 | for _, devInfo := range blkDevs { |
| 81 | // Skip devices according to the exclusion list. |
| 82 | for _, prefix := range exclude { |
| 83 | if strings.HasPrefix(devInfo.Name(), prefix) { |
| 84 | continue probeLoop |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | // Skip partition symlinks. |
| 89 | if _, err := os.Stat(filepath.Join(blkDirPath, devInfo.Name(), "partition")); err == nil { |
| 90 | continue |
| 91 | } else if !os.IsNotExist(err) { |
| 92 | return nil, fmt.Errorf("while probing sysfs: %w", err) |
| 93 | } |
| 94 | |
| 95 | // Skip devices of insufficient size. |
| 96 | devPath := filepath.Join("/dev", devInfo.Name()) |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 97 | dev, err := blockdev.Open(devPath, blockdev.WithReadonly) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 98 | if err != nil { |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 99 | l.Warningf("couldn't open a block device at %q, ignoring: %v", devPath, err) |
| 100 | continue |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 101 | } |
| Lorenz Brun | ad13188 | 2023-06-28 16:42:20 +0200 | [diff] [blame] | 102 | devSize := uint64(dev.BlockCount() * dev.BlockSize()) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 103 | dev.Close() |
| Lorenz Brun | ad13188 | 2023-06-28 16:42:20 +0200 | [diff] [blame] | 104 | if devSize < minSize { |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 105 | continue |
| 106 | } |
| 107 | |
| 108 | suitable = append(suitable, devInfo.Name()) |
| 109 | } |
| 110 | return suitable, nil |
| 111 | } |
| 112 | |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 113 | func main() { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 114 | bringup.Runnable(installerRunnable).Run() |
| 115 | } |
| Mateusz Zalega | cdcc739 | 2021-12-08 15:34:53 +0100 | [diff] [blame] | 116 | |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 117 | func installerRunnable(ctx context.Context) error { |
| 118 | l := supervisor.Logger(ctx) |
| 119 | |
| 120 | l.Info("Metropolis Installer") |
| Jan Schär | 10670e5 | 2025-04-23 12:54:48 +0000 | [diff] [blame] | 121 | l.Info(copyrightLine) |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 122 | l.Info("") |
| 123 | |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 124 | devmgrSvc := devmgr.New() |
| 125 | supervisor.Run(ctx, "devmgr", devmgrSvc.Run) |
| 126 | |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 127 | // Validate we are running via EFI. |
| 128 | if _, err := os.Stat("/sys/firmware/efi"); os.IsNotExist(err) { |
| Tim Windelschmidt | 1f51cf4 | 2024-10-01 17:04:28 +0200 | [diff] [blame] | 129 | // nolint:ST1005 |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 130 | return errors.New("Monogon OS can only be installed on EFI-booted machines, this one is not") |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 131 | } |
| Serge Bazanski | f71fe92 | 2023-03-22 01:10:37 +0100 | [diff] [blame] | 132 | |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 133 | // Read the installer ESP UUID from efivarfs. |
| 134 | espUuid, err := efivarfs.ReadLoaderDevicePartUUID() |
| 135 | if err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 136 | return fmt.Errorf("while reading the installer ESP UUID: %w", err) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 137 | } |
| Lorenz Brun | 57d06a7 | 2022-01-13 14:12:27 +0100 | [diff] [blame] | 138 | // Wait for up to 30 tries @ 1s (30s) for the ESP to show up |
| 139 | var espDev string |
| 140 | var retries = 30 |
| 141 | for { |
| 142 | // Look up the installer partition based on espUuid. |
| 143 | espDev, err = sysfs.DeviceByPartUUID(espUuid) |
| 144 | if err == nil { |
| 145 | break |
| 146 | } else if errors.Is(err, sysfs.ErrDevNotFound) && retries > 0 { |
| 147 | time.Sleep(1 * time.Second) |
| 148 | retries-- |
| 149 | } else { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 150 | return fmt.Errorf("while resolving the installer device handle: %w", err) |
| Lorenz Brun | 57d06a7 | 2022-01-13 14:12:27 +0100 | [diff] [blame] | 151 | } |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 152 | } |
| Lorenz Brun | 57d06a7 | 2022-01-13 14:12:27 +0100 | [diff] [blame] | 153 | espPath := filepath.Join("/dev", espDev) |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 154 | // Mount the installer partition. The OS image will be read from it. |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 155 | if err := mountInstallerESP(espPath); err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 156 | return fmt.Errorf("while mounting the installer ESP: %w", err) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 157 | } |
| 158 | |
| Jan Schär | c1b6df4 | 2025-03-20 08:52:18 +0000 | [diff] [blame] | 159 | nodeParameters, err := structfs.OSPathBlob("/installer/metropolis-installer/nodeparams.pb") |
| Lorenz Brun | 0b93c8d | 2021-11-09 03:58:40 +0100 | [diff] [blame] | 160 | if err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 161 | return fmt.Errorf("failed to open node parameters from ESP: %w", err) |
| Lorenz Brun | 0b93c8d | 2021-11-09 03:58:40 +0100 | [diff] [blame] | 162 | } |
| 163 | |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 164 | ociImage, err := oci.ReadLayout("/installer/metropolis-installer/osimage") |
| Lorenz Brun | 0b93c8d | 2021-11-09 03:58:40 +0100 | [diff] [blame] | 165 | if err != nil { |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 166 | return fmt.Errorf("failed to read OS image from ESP: %w", err) |
| Lorenz Brun | 0b93c8d | 2021-11-09 03:58:40 +0100 | [diff] [blame] | 167 | } |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 168 | osImage, err := osimage.Read(ociImage) |
| Lorenz Brun | 0b93c8d | 2021-11-09 03:58:40 +0100 | [diff] [blame] | 169 | if err != nil { |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 170 | return fmt.Errorf("failed to read OS image from ESP: %w", err) |
| Lorenz Brun | 0b93c8d | 2021-11-09 03:58:40 +0100 | [diff] [blame] | 171 | } |
| Jan Schär | 5fdca56 | 2025-04-14 11:33:29 +0000 | [diff] [blame] | 172 | |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 173 | // Build the install parameters. |
| 174 | installParams := install.Params{ |
| 175 | PartitionSize: install.PartitionSizeInfo{ |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 176 | // ESP is the size of the node ESP partition, expressed in mebibytes. |
| Lorenz Brun | 35fcf03 | 2023-06-29 04:15:58 +0200 | [diff] [blame] | 177 | ESP: 384, |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 178 | // System is the size of the node system partition, expressed in |
| 179 | // mebibytes. |
| 180 | System: 4096, |
| 181 | // Data must be nonzero in order for the data partition to be created. |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 182 | // install will extend the data partition to fill all the available space |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 183 | // whenever it's writing to block devices, such as now. |
| 184 | Data: 128, |
| 185 | }, |
| Jan Schär | daf9e95 | 2025-06-23 13:28:16 +0000 | [diff] [blame] | 186 | OSImage: osImage, |
| Jan Schär | c1b6df4 | 2025-03-20 08:52:18 +0000 | [diff] [blame] | 187 | ABLoader: structfs.Bytes(abloader), |
| 188 | NodeParameters: nodeParameters, |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 189 | } |
| 190 | // Calculate the minimum target size based on the installation parameters. |
| 191 | minSize := uint64((installParams.PartitionSize.ESP + |
| Jan Schär | 42ef7c7 | 2024-03-18 15:09:51 +0100 | [diff] [blame] | 192 | installParams.PartitionSize.System*2 + |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 193 | installParams.PartitionSize.Data + 1) * mib) |
| 194 | |
| 195 | // Look for suitable block devices, given the minimum size. |
| Lorenz Brun | 3545df3 | 2025-07-07 11:15:15 +0200 | [diff] [blame^] | 196 | blkDevs, err := findInstallableBlockDevices(l, espDev, minSize) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 197 | if err != nil { |
| Tim Windelschmidt | 5f1a7de | 2024-09-19 02:00:14 +0200 | [diff] [blame] | 198 | return err |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 199 | } |
| 200 | if len(blkDevs) == 0 { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 201 | return fmt.Errorf("couldn't find a suitable block device") |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 202 | } |
| 203 | // Set the first suitable block device found as the installation target. |
| 204 | tgtBlkdevName := blkDevs[0] |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 205 | // Update the install parameters with a path pointing at the target device. |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 206 | tgtBlkdevPath := filepath.Join("/dev", tgtBlkdevName) |
| Lorenz Brun | ad13188 | 2023-06-28 16:42:20 +0200 | [diff] [blame] | 207 | |
| 208 | tgtBlockDev, err := blockdev.Open(tgtBlkdevPath) |
| 209 | if err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 210 | return fmt.Errorf("error opening target device: %w", err) |
| Lorenz Brun | ad13188 | 2023-06-28 16:42:20 +0200 | [diff] [blame] | 211 | } |
| 212 | installParams.Output = tgtBlockDev |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 213 | |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 214 | // Use install to partition the target block device and set up its ESP. |
| Tim Windelschmidt | cc27faa | 2024-08-01 02:18:35 +0200 | [diff] [blame] | 215 | // Write will return an EFI boot entry on success. |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 216 | l.Infof("Installing to %s...", tgtBlkdevPath) |
| Jan Schär | e19d279 | 2025-06-23 12:37:58 +0000 | [diff] [blame] | 217 | be, err := install.Write(&installParams) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 218 | if err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 219 | return fmt.Errorf("while installing: %w", err) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 220 | } |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 221 | |
| 222 | // Create an EFI boot entry for Metropolis. |
| Lorenz Brun | ca1cff0 | 2023-06-26 17:52:44 +0200 | [diff] [blame] | 223 | en, err := efivarfs.AddBootEntry(be) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 224 | if err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 225 | return fmt.Errorf("while creating a boot entry: %w", err) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 226 | } |
| 227 | // Erase the preexisting boot order, leaving Metropolis as the only option. |
| Lorenz Brun | 9933ef0 | 2023-07-06 18:28:29 +0200 | [diff] [blame] | 228 | if err := efivarfs.SetBootOrder(efivarfs.BootOrder{uint16(en)}); err != nil { |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 229 | return fmt.Errorf("while adjusting the boot order: %w", err) |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 230 | } |
| 231 | |
| 232 | // Reboot. |
| Lorenz Brun | ad13188 | 2023-06-28 16:42:20 +0200 | [diff] [blame] | 233 | tgtBlockDev.Close() |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 234 | unix.Sync() |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 235 | l.Info("Installation completed. Rebooting.") |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 236 | unix.Reboot(unix.LINUX_REBOOT_CMD_RESTART) |
| Tim Windelschmidt | 96e014e | 2024-09-10 02:26:13 +0200 | [diff] [blame] | 237 | return nil |
| Mateusz Zalega | 43e2107 | 2021-10-08 18:05:29 +0200 | [diff] [blame] | 238 | } |