Bug 1851348

Summary: RFE for fstab: optional LABEL setting instead of UUID
Product: Red Hat Enterprise Linux 8 Reporter: Josef Kubin <jkubin>
Component: python-blivetAssignee: Jan <japokorn>
Status: CLOSED MIGRATED QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: amepatil, jstodola, kwalker, pusharma, vponcova, vtrefny
Target Milestone: rcKeywords: FutureFeature, MigratedToJIRA, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1886942 (view as bug list) Environment:
Last Closed: 2023-09-23 12:31:37 UTC Type: Story
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1886942    
Attachments:
Description Flags
kickstart, which mimics the required output using %post none

Description Josef Kubin 2020-06-26 09:37:41 UTC
Created attachment 1698905 [details]
kickstart, which mimics the required output using %post

Description of problem:

excerpt from /etc/fstab

1) RFE: UUID ---> LABEL

kickstart produces:

UUID=50919ce6-fe11-4bfb-a859-4ce0df24c427 /boot  ext4  defaults  1 2

desired output:

LABEL=/boot        /boot            ext4    defaults        1 2

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2) RFE: "fifth (fs_freq) and sixth field (fs_passno) settings"

kickstart produces:

UUID=d755ae3f-46d1-47de-bc17-23923e2ab12a /data/01  xfs  defaults,noatime 0 0

desired output:

/dev/sdb1    /data/01  xfs  defaults,noatime 1 2

Comment 3 Josef Kubin 2020-06-26 10:08:06 UTC
~]$ cat current_fstab 
#
# /etc/fstab
# Created by anaconda on Sun Jun 14 20:09:39 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg00-lv_root /                       xfs     defaults        0 0
UUID=50919ce6-fe11-4bfb-a859-4ce0df24c427 /boot                   ext4    defaults        1 2
UUID=d755ae3f-46d1-47de-bc17-23923e2ab12a /data/01                xfs     defaults,noatime 0 0
UUID=8f9ffcc0-ba3e-41eb-817a-8bf0d502f1da /data/02                xfs     defaults,noatime 0 0
UUID=7f74af04-6897-44ad-a0c6-e8aed9ba539d /data/03                xfs     defaults,noatime 0 0
/dev/mapper/vg00-lv_home /home                   xfs     defaults        0 0
/dev/mapper/vg00-lv_install /install                xfs     defaults        0 0
/dev/mapper/vg00-lv_opt /opt                    xfs     defaults        0 0
UUID=2a97dc9d-b071-4941-9965-b63613d76d0e /softos                 ext4    defaults        1 2
UUID=7d0f3193-3198-40b1-bf29-779fcfd3ac2b /sos                    ext4    defaults        1 2
/dev/mapper/vg00-lv_tmp /tmp                    xfs     defaults        0 0
/dev/mapper/vg00-lv_usr /usr                    xfs     defaults        0 0
/dev/mapper/vg00-lv_var /var                    xfs     defaults        0 0
/dev/mapper/vg00-lv_swap swap                    swap    defaults        0 0
UUID=94342920-69e8-4b8e-b9c1-4374a5cfe989 swap                    swap    defaults        0 0


~]$ cat desired_fstab 

#
# /etc/fstab
# Created by anaconda on Tue Jun  9 08:46:14 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg00-lv_root /                       xfs     defaults        0 0
/dev/mapper/vg00-lv_home /home                   xfs     defaults        0 0
/dev/mapper/vg00-lv_install /install                xfs     defaults        0 0
/dev/mapper/vg00-lv_opt /opt                    xfs     defaults        0 0
/dev/mapper/vg00-lv_tmp /tmp                    xfs     defaults        0 0
/dev/mapper/vg00-lv_usr /usr                    xfs     defaults        0 0
/dev/mapper/vg00-lv_var /var                    xfs     defaults        0 0
/dev/mapper/vg00-lv_swap swap                    swap    defaults        0 0
LABEL=/boot        /boot            ext4    defaults        1 2
LABEL=/softos      /softos          ext4    defaults        1 2
LABEL=/sos         /sos             ext4    defaults        1 2
LABEL=SWAP-default swap             swap    defaults        0 0
/dev/sdb1	/data/01	xfs	defaults,noatime	1 2
/dev/sdc1	/data/02	xfs	defaults,noatime	1 2
/dev/sdd1 	/data/03	xfs	defaults,noatime	1 2

Comment 4 Vendula Poncova 2020-06-26 10:34:17 UTC
Anaconda calls Blivet's property fstab_spec to get a device specification for /etc/fstab. Reassigning to Blivet.

Comment 19 RHEL Program Management 2023-09-23 12:28:38 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 20 RHEL Program Management 2023-09-23 12:31:37 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.