File: ext3

package info (click to toggle)
live-installer 8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 652 kB
  • ctags: 17
  • sloc: sh: 1,162; ansic: 17; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

PLACES="$PLACES /cdrom/live/filesystem.ext3"
PLACES="$PLACES /cdrom/casper/filesystem.ext3" # Etch support

ext3_prepare() {
	modprobe ext3 || true

	mkdir -p /mnt
	umount /mnt > /dev/null 2>&1 || true
	if ! mount -t ext3 -o loop $place /mnt; then
		error "$place has failed to be mounted as ext3."
		exit 1
	fi

	cd /mnt
}

ext3_count() {
	echo `print-inodes /mnt`
}