ALT Linux Bugzilla
– Attachment 2260 Details for
Bug 7081
[FR][3.1] ability to use LABEL/UUID for fs mounts?
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
uuid-to-devname
renamer.sh (text/plain), 655 bytes, created by
Michael Shigorin
on 2007-11-10 16:47:14 MSK
(
hide
)
Description:
uuid-to-devname
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2007-11-10 16:47:14 MSK
Size:
655 bytes
patch
obsolete
>#!/bin/bash > >if [ -f /etc/fstab -a ! -z /etc/fstab ] >then > cp -f /etc/fstab /etc/fstab.orig > if [ $? != 0 ] > then > echo "Error making reserve copy of fstab. Stopping script" > exit 1 > fi >else > echo "Smth wrong with /etc/fstab. Stopping script" > exit 1 >fi > >cat /etc/fstab |\ > while read line; do > if [ `echo $line |grep ^UUID|wc -l` != 0 ] > then > UUIDline=`echo $line |cut -d' ' -f 1` > blkid |sed s/\"// |grep "$UUIDline" |\ > while read blkidline; do > inblk=$blkidline > dev="`echo -n $inblk |cut -d: -f 1`" > rest="`echo $line |sed s/$UUIDline//`" > echo "$dev $rest" > done > else > echo $line > fi > done > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7081
: 2260