Changeset 3040 in MondoRescue for branches/3.0/mondo/src
- Timestamp:
- Oct 6, 2012, 5:25:43 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/src/restore-scripts/mondo/label-partitions-as-necessary
r3008 r3040 42 42 if [ "$opttun" = "-U" ]; then 43 43 LogIt "Creating uuid $label on swap partition $mountpt" 44 echo -n "$label" | perl -ne 's/-//g;chomp;print pack "H*",$_' | dd conv=notrunc "of=$mountpt" obs=1 seek=1036 44 if [ -x "/sbin/swaplabel" ]; then 45 /sbin/swaplabel $opttun $label $mountpt 46 else 47 echo -n "$label" | perl -ne 's/-//g;chomp;print pack "H*",$_' | dd conv=notrunc "of=$mountpt" obs=1 seek=1036 48 fi 45 49 else 46 command="mkswap $opttun $label $mountpt" 50 if [ -x "/sbin/swaplabel" ]; then 51 command="/sbin/swaplabel $opttun $label $mountpt" 52 else 53 command="mkswap $opttun $label $mountpt" 54 fi 47 55 LogIt "Running $command" 48 56 $command
Note:
See TracChangeset
for help on using the changeset viewer.