Skip to content

Commit

Permalink
Ignoring floppy devices for live filesystem as well as live persistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed May 31, 2008
1 parent 2cda066 commit e8d9899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/live
Expand Up @@ -1211,7 +1211,7 @@ find_livefs ()
fi

# or do the scan of block devices
for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram | grep -v 'dm-')
for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram | grep -v 'dm-' | grep -v fd )
do
devname=$(sys2dev "${sysblock}")
fstype=$(get_fstype "${devname}")
Expand Down
4 changes: 2 additions & 2 deletions scripts/live-helpers
Expand Up @@ -234,7 +234,7 @@ find_cow_device ()
pers_label="${1}"
cow_backing="/${pers_label}-backing"

for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram)
for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram | grep -v fd)
do
for dev in $(subdevices "${sysblock}")
do
Expand Down Expand Up @@ -274,7 +274,7 @@ find_files ()
filenames="${1}"
snap_backing="/snap-backing"

for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram)
for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram | grep -v fd)
do
for dev in $(subdevices "${sysblock}")
do
Expand Down

0 comments on commit e8d9899

Please sign in to comment.