Displaying 6 results from an estimated 6 matches for "devname_2".
Did you mean:
devname_r
2010 Mar 23
1
[PATCH node][RFC] Fix uninstall to detect and cleanup correct partitions
...t_part_info() {
+ local drive_in=$1
+ local dev_var=$2
+ local part_var=$3
+ local devname_1 devname2 part_number
+ local rc=0
+
+ eval $(readlink -f /dev/disk/by-label/$grub_dev_label|awk {'
+ print "devname_1=" substr($1,1,length($1)-1);
+ print "devname_2=" substr($1,1,length($1)-2);
+ part_number=substr($1,length($1),1); partN--;
+ print "part_number=" part_number;
+ }')
+ rc=$?
+
+ if [ -e ${devname_1} ]; then
+ eval "${dev_var}"="${devname_1}"
+ elif [ -e ${devname_2 ]; then...
2010 May 10
1
[PATCH node] RESEND: fix iscsi installation problems
...cal drive_in="$1"
local dev_var=$2
local part_var=$3
+ local grub_dev=$4
local devname_1 devname2 part_number
local rc=0
- eval $(readlink -f "$drive_in" |awk {'
- print "devname_1=" substr($1,1,length($1)-1);
- print "devname_2=" substr($1,1,length($1)-2);
- part_number=substr($1,length($1),1);
- print "part_number=" part_number;
- }')
+ if [ -z "$grub_dev" ]; then
+ eval $(readlink -f "$drive_in" |awk {'
+ print "devname_1=" substr...
2010 Apr 09
0
[PATCH node] fix iscsi installation problems
...cal drive_in="$1"
local dev_var=$2
local part_var=$3
+ local grub_dev=$4
local devname_1 devname2 part_number
local rc=0
- eval $(readlink -f "$drive_in" |awk {'
- print "devname_1=" substr($1,1,length($1)-1);
- print "devname_2=" substr($1,1,length($1)-2);
- part_number=substr($1,length($1),1);
- print "part_number=" part_number;
- }')
+ if [ -z "$grub_dev" ]; then
+ eval $(readlink -f "$drive_in" |awk {'
+ print "devname_1=" substr...
2010 Mar 23
0
[PATCH node] Fix uninstall to detect and cleanup correct partitions
...tion and device names
+get_part_info() {
+ local drive_in=$1
+ local dev_var=$2
+ local part_var=$3
+ local devname_1 devname2 part_number
+ local rc=0
+
+ eval $(readlink -f $drive_in|awk {'
+ print "devname_1=" substr($1,1,length($1)-1);
+ print "devname_2=" substr($1,1,length($1)-2);
+ part_number=substr($1,length($1),1);
+ print "part_number=" part_number;
+ }')
+ rc=$?
+
+ if [[ "part_number" -lt 1 ]]; then
+ log "Partition number was invalid"
+ return 2
+ fi
+
+
+ i...
2010 Mar 24
2
[PATCH node][REPOST 1/2] Fix uninstall to detect and cleanup correct partitions
...tion and device names
+get_part_info() {
+ local drive_in=$1
+ local dev_var=$2
+ local part_var=$3
+ local devname_1 devname2 part_number
+ local rc=0
+
+ eval $(readlink -f $drive_in|awk {'
+ print "devname_1=" substr($1,1,length($1)-1);
+ print "devname_2=" substr($1,1,length($1)-2);
+ part_number=substr($1,length($1),1);
+ print "part_number=" part_number;
+ }')
+ rc=$?
+
+ if [[ "part_number" -lt 1 ]]; then
+ log "Partition number was invalid"
+ return 2
+ fi
+
+
+ i...
2010 Mar 31
1
[PATCH node] Handle space in storage wwid
..."
local dev_var=$2
local part_var=$3
local devname_1 devname2 part_number
local rc=0
- eval $(readlink -f $drive_in|awk {'
+ eval $(readlink -f "$drive_in" |awk {'
print "devname_1=" substr($1,1,length($1)-1);
print "devname_2=" substr($1,1,length($1)-2);
part_number=substr($1,length($1),1);
--
1.6.6.1