File: squashfs

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 (22 lines) | stat: -rw-r--r-- 433 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
22
#!/bin/sh -e

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

squashfs_prepare() {
	modprobe squashfs || true
	modprobe loop || true

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

	cd /mnt
}

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