File: do_option

package info (click to toggle)
partman-basicfilesystems 156
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,616 kB
  • sloc: sh: 1,149; makefile: 2
file content (16 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

dev=$2
id=$3

mkdir -p $dev/$id

if [ -f $dev/$id/method ]; then
	old_method=$(cat $dev/$id/method)
else
	old_method=do_not_use
fi

echo swap >$dev/$id/method
>$dev/$id/format
rm -f $dev/$id/use_filesystem