summaryrefslogtreecommitdiff
path: root/old-school/lvm-create.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-22 13:48:17 -0400
committerAndrew Cady <d@jerkface.net>2016-04-22 18:50:58 -0400
commit85aa0fb94d870aae7e793f44816fd1652042b1bb (patch)
treea15106ddc2d1318a6544d71f304dfea0da9423b9 /old-school/lvm-create.sh
parentf609b54511e04770950c9fbf6407977828f4d426 (diff)
remove some cruft
Diffstat (limited to 'old-school/lvm-create.sh')
-rw-r--r--old-school/lvm-create.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/old-school/lvm-create.sh b/old-school/lvm-create.sh
index 44873ef..e6f4eea 100644
--- a/old-school/lvm-create.sh
+++ b/old-school/lvm-create.sh
@@ -13,20 +13,6 @@ luks_secret()
13 case $parms in *x*) set -x; set -x ;; esac 13 case $parms in *x*) set -x; set -x ;; esac
14} 14}
15 15
16mount_squashfs_images()
17{
18 modprobe squashfs
19 find_squashfs_root | while read dirname basename; do
20 [ -n "$dirname" -a -n "$basename" ] || continue
21 local f="$dirname/$basename"
22 [ -f "$f" ] || return
23 local name=${basename%.squashfs}
24 mkdir -p /squashes/$name
25 mount -r -o loop "$f" /squashes/$name
26 done
27 bootdone squashfs-root
28}
29
30floor4() 16floor4()
31{ 17{
32 # Negatives round up, but aren't used. 18 # Negatives round up, but aren't used.
@@ -40,22 +26,6 @@ ceil4()
40 printf '%d\n' "$x" 26 printf '%d\n' "$x"
41} 27}
42 28
43mount_aufs_branches()
44{
45 local new="$1"
46
47 mkdir /overlay
48 mount -t${ROOT_FS_TYPE} /dev/mapper/samizdat-root /overlay || return
49
50 if [ "$new" ]; then
51 cp -a /gpg /overlay || return
52 touch /overlay/samizdat-filesystem-is-new
53 fi
54 bootdone rw-overlay
55 mirror_cdrom || return
56 mount_squashfs_images || return
57}
58
59init_samizdat() 29init_samizdat()
60{ 30{
61 local imgfile="$1" megs="$2" keyfile="$3" dev 31 local imgfile="$1" megs="$2" keyfile="$3" dev