Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DVD layout gets saved in disklayout.conf when mounted #257

Closed
gdha opened this issue Jun 25, 2013 · 1 comment
Closed

DVD layout gets saved in disklayout.conf when mounted #257

gdha opened this issue Jun 25, 2013 · 1 comment
Assignees
Labels
bug The code does not do what it is meant to do
Milestone

Comments

@gdha
Copy link
Member

gdha commented Jun 25, 2013

On Fedora19:

# grep sr /var/lib/rear/layout/disklayout.conf
fs /dev/sr0 /media iso9660  options=ro,relatime

On OpenSuse 12.3:

# grep sr /var/lib/rear/layout/disklayout.conf
fs /dev/sr0 /run/media/gratien/openSUSE-12.3-DVD-x86_640110 iso9660  options=ro,nosuid,nodev,relatime,uid=1000,gid=100,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks2
fs /dev/sr0 /var/run/media/gratien/openSUSE-12.3-DVD-x86_640110 iso9660  options=ro,nosuid,nodev,relatime,uid=1000,gid=100,iocharset=utf8,mode=0400,dmode=0500

Seems like we forgot to exclude CD/DVD-rom devices in script layout/save/GNU/Linux/23_filesystem_layout.sh

@ghost ghost assigned jhoekx Jun 25, 2013
@ghost ghost assigned gdha Jan 10, 2014
@gdha
Copy link
Member Author

gdha commented Jan 10, 2014

The /usr/share/rear/layout/save/GNU/Linux/23_filesystem_layout.sh script produces:

++ read device on mountpoint type fstype options junk
++ '[' dev/sr0 = /dev/sr0 ']'
++ '[' '!' -b /dev/sr0 ']'
++ [[ /dev/sr0 == /dev/disk/by-uuid* ]]
++ echo -n 'fs /dev/sr0 /media iso9660 '
++ case "$fstype" in
++ options='ro,relatime)'
++ options=ro,relatime
++ case "$fstype" in
++ echo -n ' options=ro,relatime

@gdha gdha closed this as completed in fbccd6d Jan 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The code does not do what it is meant to do
Projects
None yet
Development

No branches or pull requests

2 participants