17a18 > casper=casper 46a48,49 > casper=*) > export casper="${x#casper=}" 57,59c60,62 < if [ "$(echo $path/casper/*.squashfs)" != "$path/casper/*.squashfs" ] || < [ "$(echo $path/casper/*.ext2)" != "$path/casper/*.ext2" ] || < [ "$(echo $path/casper/*.dir)" != "$path/casper/*.dir" ]; then --- > if [ "$(echo $path/${casper}/*.squashfs)" != "$path/${casper}/*.squashfs" ] || > [ "$(echo $path/${casper}/*.ext2)" != "$path/${casper}/*.ext2" ] || > [ "$(echo $path/${casper}/*.dir)" != "$path/${casper}/*.dir" ]; then 109,111c112,114 < if match_files_in_dir "$directory/casper/*.squashfs" || < match_files_in_dir "$directory/casper/*.ext2" || < match_files_in_dir "$directory/casper/*.dir"; then --- > if match_files_in_dir "$directory/${casper}/*.squashfs" || > match_files_in_dir "$directory/${casper}/*.ext2" || > match_files_in_dir "$directory/${casper}/*.dir"; then 418c421 < mkdir -p "${rootmnt}/casper/${d##*/}" --- > mkdir -p "${rootmnt}/${casper}/${d##*/}" 420c423 < *.dir) # do nothing # mount -o bind "${d}" "${rootmnt}/casper/${d##*/}" --- > *.dir) # do nothing # mount -o bind "${d}" "${rootmnt}/${casper}/${d##*/}" 422c425 < *) mount -o move "${d}" "${rootmnt}/casper/${d##*/}" --- > *) mount -o move "${d}" "${rootmnt}/${casper}/${d##*/}" 465c468 < mount -t ${fstype} -o ro,noatime "${devname}" $mountpoint || continue --- > mount -t ${fstype} -o rw,noatime "${devname}" $mountpoint || continue