// Generates org.osbuild.fstab stage options from this partition table.
Generates org.osbuild.fstab stage options from this partition table.
// Generates org . osbuild . fstab stage options from this partition table .
func (pt PartitionTable) FSTabStageOptions() *osbuild.FSTabStageOptions {
	var options osbuild.FSTabStageOptions
	for _, p := range pt.Partitions {
		fs := p.Filesystem
		if fs == nil {
			continue
		}
		options.AddFilesystem(fs.UUID, fs.Type, fs.Mountpoint, fs.FSTabOptions, fs.FSTabFreq, fs.FSTabPassNo)
	}
	sort.Slice(options.FileSystems, func(i, j int) bool {
		return options.FileSystems[i].PassNo < options.FileSystems[j].PassNo
	})
	return &options
}
func ( pt PartitionTable ) FSTabStageOptions ( ) * osbuild . FSTabStageOptions { var options osbuild . FSTabStageOptions for _ , p := range pt . Partitions { fs := p . Filesystem if fs == nil { continue } options . AddFilesystem ( fs . UUID , fs . Type , fs . Mountpoint , fs . FSTabOptions , fs . FSTabFreq , fs . FSTabPassNo ) } sort . Slice ( options . FileSystems , func ( i , j int ) bool { return options . FileSystems [ i ] . PassNo < options . FileSystems [ j ] . PassNo } ) return & options }
Generates org.osbuild.fstab stage options from this partition table.
Generates org . osbuild . fstab stage options from this partition table .
// sort the entries by PassNo to maintain backward compatibility