Skip to content

Commit

Permalink
overlay/live-generator: Add requires/after for rootfs on ISO
Browse files Browse the repository at this point in the history
We are seeing RHCOS ISO bootup fail sometimes, I think we're racing
with some udev probe transiently inspecting the CD.
I believe that by adding this `After=`, we're serializing on
udev probing being complete for that device.  Plus, it's
just best practice anyways.
  • Loading branch information
cgwalters committed May 19, 2020
1 parent 7c9a202 commit abbfd7e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,19 @@ else

# And in this case, it's on the ISO
mkdir -p /run/media/iso
isosrc=dev/disk/by-label/${isoroot}
isosrc_escaped=$(systemd-escape "${isosrc}")
cat >"${UNIT_DIR}/run-media-iso.mount" <<EOF
# Automatically generated by live-generator
[Unit]
DefaultDependencies=false
Before=initrd-root-fs.target
After=${isosrc_escaped}
Requires=${isosrc_escaped}
[Mount]
What=/dev/disk/by-label/${isoroot}
What=/${isosrc}
Where=/run/media/iso
Type=iso9660
EOF
Expand Down

0 comments on commit abbfd7e

Please sign in to comment.