<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Howdy. I've got a "Resize file system" service that wants first-boot-complete.target and is to be run before it. I've linked the service to the first-boot-complete.target, removed /etc/machine-id and then reboot. The first boot condition is met, yet I see the following status once booted:</div><div><br></div><div><font face="Courier New">○ resizefs.service - Resize file system to capacity on first boot</font></div><div><font face="Courier New"> Loaded: loaded (/etc/systemd/system/resizefs.service; enabled; preset: enabled)</font></div><div><font face="Courier New"> Active: inactive (dead)</font></div><div><br></div><div>If there was a problem with my link then I suppose wouldn't see that the above service is enabled. Which leads me to think that there's something else up.</div><div><br></div><div>If I check the target itself:</div><div><br></div><div><font face="Courier New">○ first-boot-complete.target - First Boot Complete</font></div><div><font face="Courier New"> Loaded: loaded (/usr/lib/systemd/system/first-boot-complete.target; static)</font></div><div><font face="Courier New"> Active: inactive (dead)</font></div><div><font face="Courier New"> Docs: man:systemd.special(7)</font></div><div><br></div><div>...then I think that's telling me that first boot didn't complete... right? But dmesg shows that first boot is so:</div><div><br></div><div><font face="Courier New">[ 3.024138] systemd[1]: Detected first boot.</font></div><div><br></div><div>Here's my unit file:</div><div><br></div><div><font face="Courier New">[Unit]</font></div><div><font face="Courier New">Description=Resize file system to capacity on first boot</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">ConditionFirstBoot=yes</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">DefaultDependencies=no</font></div><div><font face="Courier New"># This service will need to write to the file system:</font></div><div><font face="Courier New">After=systemd-remount-fs.service</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">Wants=first-boot-complete.target</font></div><div><font face="Courier New">Before=first-boot-complete.target sysinit.target</font></div><div><font face="Courier New">Conflicts=shutdown.target</font></div><div><font face="Courier New">Before=shutdown.target</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">[Service]</font></div><div><font face="Courier New">Type=oneshot</font></div><div><font face="Courier New">ExecStart=/etc/systemd/system/resizefs.sh</font></div><div><br></div><div>Thanks for any ideas as to why my service is not being started.</div><div><br></div></body></html>