fix copy/paste error
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								9fd74acfac
							
						
					
				
			
			
				commit
				
					
						20241a0c5c
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -18,20 +18,20 @@
 | 
			
		|||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
device="(cat "$__object/parameter/device")"
 | 
			
		||||
type="(cat "$__object/parameter/type")"
 | 
			
		||||
device="$(cat "$__object/parameter/device")"
 | 
			
		||||
type="$(cat "$__object/parameter/type")"
 | 
			
		||||
 | 
			
		||||
if [ "$type" = "swap" ]; then
 | 
			
		||||
   echo "mkswap $device"
 | 
			
		||||
else
 | 
			
		||||
   command="mkfs -t $type"
 | 
			
		||||
   if [ -f "$__object/parameter/options" ]; then
 | 
			
		||||
      options="(cat "$__object/parameter/options")"
 | 
			
		||||
      options="$(cat "$__object/parameter/options")"
 | 
			
		||||
      command="$command -o '$options'"
 | 
			
		||||
   fi
 | 
			
		||||
   command="$command $device"
 | 
			
		||||
   if [ -f "$__object/parameter/blocks" ]; then
 | 
			
		||||
      blocks="(cat "$__object/parameter/blocks")"
 | 
			
		||||
      blocks="$(cat "$__object/parameter/blocks")"
 | 
			
		||||
      command="$command $blocks"
 | 
			
		||||
   fi
 | 
			
		||||
   echo "$command"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue