summaryrefslogtreecommitdiff
path: root/src/initrd/grok-block
diff options
context:
space:
mode:
Diffstat (limited to 'src/initrd/grok-block')
-rwxr-xr-xsrc/initrd/grok-block10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/initrd/grok-block b/src/initrd/grok-block
index e573c91..93770d5 100755
--- a/src/initrd/grok-block
+++ b/src/initrd/grok-block
@@ -135,10 +135,12 @@ grok_block()
135 if [ "$freemegs" -ge 300 ]; then 135 if [ "$freemegs" -ge 300 ]; then
136 136
137 umount=false 137 umount=false
138 bootwait samizdat-cdrom 138 # bootwait samizdat-cdrom
139 cdromblocks=$(stat -f -c %b /cdrom) 139 # cdromblocks=$(stat -f -c %b /cdrom)
140 cdromblocksize=$(stat -f -c %S /cdrom) 140 # cdromblocksize=$(stat -f -c %S /cdrom)
141 cdrommegs=$((cdromblocks * cdromblocksize / 1024 / 1024)) 141 # cdrommegs=$((cdromblocks * cdromblocksize / 1024 / 1024))
142
143 cdrommegs=700 # TODO: go back to checking the size
142 144
143 if [ "$freemegs" -ge "$((cdrommegs * 3))" ]; then 145 if [ "$freemegs" -ge "$((cdrommegs * 3))" ]; then
144 addmenu_makeroot "$DEVNAME" "${mountpoint}/samizdat.$N" "$((cdrommegs * 3))" 1 146 addmenu_makeroot "$DEVNAME" "${mountpoint}/samizdat.$N" "$((cdrommegs * 3))" 1