chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d31a24
)
get example settings right; use break properly
author
ianmdlvl
<ianmdlvl>
Sun, 30 Jul 2006 13:44:07 +0000
(13:44 +0000)
committer
ianmdlvl
<ianmdlvl>
Sun, 30 Jul 2006 13:44:07 +0000
(13:44 +0000)
backup/examples/chiark/settings.sh
patch
|
blob
|
history
backup/remountrocp
patch
|
blob
|
history
diff --git
a/backup/examples/chiark/settings.sh
b/backup/examples/chiark/settings.sh
index d8b8713190a759babf51d12248948759b6533bc1..4fad8c5b4c05fc3165f221de049732087e493df6 100755
(executable)
--- a/
backup/examples/chiark/settings.sh
+++ b/
backup/examples/chiark/settings.sh
@@
-1,6
+1,6
@@
# shell script fragment setting options
# defaults for currently implemented parameters are
-lvm_vg=vg_main
+#lvm_vg=
#lvm_lv=chiark_backup
#lvm_lvsize_opts=
# -l <min(no. of free extents in vg, 1.1x total lv size)> (lvm)
diff --git
a/backup/remountrocp
b/backup/remountrocp
index d9ba15518a20c6279790b632b21c33ed88e9b965..65037ee0c3b423943183a32b927fd719605cfccf 100755
(executable)
--- a/
backup/remountrocp
+++ b/
backup/remountrocp
@@
-61,7
+61,7
@@
mount -t $remountrocp_fs $lvm_mount_opts "$lvpath" "$snmnt"
attempts=10
while true; do
- if mount -o remount,ro "$mountpoint"; then
last
; fi
+ if mount -o remount,ro "$mountpoint"; then
break
; fi
attempts=$(( $attempts - 1 ))
if [ $attempts = 0 ]; then
echo >&2 'cannot remount readonly'