mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-04 08:04:23 +00:00
Symlink /sysroot/oem to /oem so we can run rootfs stage
Looks like we need to have the oem partition loaded for some cases, and during rootfs we should pick it up. Currently we only mount it under /sysroot/oem. IIRC in cos-immutable-rootfs it was mounted under /oem directly, the rootfs stage service run and then when cos-layout was launched it made sure to unmount /oem so it could mount it under /sysroot/oem In our case its a bit more complicated, we may need to mount it under /oem before the rootfs run, then unmount it and mount it in the proper place. Im hoping we can get away with just creating the symlink Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -59,7 +59,11 @@ Sends a generic event payload with the configuration found in the scanned direct
|
||||
|
||||
img := utils.ReadCMDLineArg("cos-img/filename=")
|
||||
if len(img) == 0 {
|
||||
log.Logger.Fatal().Msg("Could not get the image name from cmdline (i.e. cos-img/filename=/cOS/active.img)")
|
||||
if c.Bool("dry-run") {
|
||||
img = []string{"fake"}
|
||||
} else {
|
||||
log.Logger.Fatal().Msg("Could not get the image name from cmdline (i.e. cos-img/filename=/cOS/active.img)")
|
||||
}
|
||||
}
|
||||
log.Debug().Strs("TargetImage", img).Msg("Target image")
|
||||
g := herd.DAG()
|
||||
|
Reference in New Issue
Block a user