11__author__ = "desultory"
2- __version__ = "7.1.1 "
2+ __version__ = "7.1.2 "
33
44from pathlib import Path
55from re import search
@@ -294,7 +294,9 @@ def _to_fstab_entry(self, mount: dict) -> str:
294294
295295
296296def generate_fstab (self , mount_class = "mounts" , filename = "/etc/fstab" ) -> None :
297- """Generates the fstab from the specified mounts."""
297+ """Generates the fstab from the specified mounts.
298+ Adds fstab entries to the check_in_file, to ensure they exist in the final image.
299+ """
298300 fstab_info = [f"# UGRD Filesystem module v{ __version__ } " ]
299301
300302 for mount_name , mount_info in self [mount_class ].items ():
@@ -308,6 +310,7 @@ def generate_fstab(self, mount_class="mounts", filename="/etc/fstab") -> None:
308310
309311 if len (fstab_info ) > 1 :
310312 self ._write (filename , fstab_info )
313+ self ["check_in_file" ][filename ] = fstab_info
311314 else :
312315 self .logger .debug (
313316 "[%s] No fstab entries generated for mounts: %s" % (mount_class , ", " .join (self [mount_class ].keys ()))
@@ -865,7 +868,7 @@ def mount_fstab(self) -> list[str]:
865868 mount_retries sets the number of times to retry the mount, infinite otherwise.
866869 """
867870 if not self ._get_build_path ("/etc/fstab" ).exists ():
868- return self .logger .warning ("No initramfs fstab found, skipping mount_fstab." )
871+ return self .logger .info ("No initramfs fstab found, skipping mount_fstab. If non-root storage devices are not needed at boot, this is fine ." )
869872
870873 out = [
871874 'einfo "Attempting to mount all filesystems."' ,
0 commit comments