File: parted

package info (click to toggle)
partman-base 191%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,988 kB
  • ctags: 214
  • sloc: sh: 2,296; ansic: 2,238; makefile: 35
file content (21 lines) | stat: -rwxr-xr-x 318 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

. /lib/partman/lib/base.sh
. /lib/partman/lib/commit.sh

for dev in $DEVICES/*; do
	[ -d "$dev" ] || continue
	cd $dev

	open_dialog IS_CHANGED
	read_line is_changed
	close_dialog
	[ "$is_changed" = yes ] || continue

	disable_swap "$dev"

	open_dialog COMMIT
	close_dialog

	device_cleanup_partitions
done