diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-06-25 17:49:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-06-25 17:49:37 +0200 |
commit | 76fb46699ea35ef8bfce9c531e30ae4d031c45cb (patch) | |
tree | 4e3cf8f96abb00fc949dae3c8bc8c4e0e84bab71 /init | |
parent | 2216352a60686fb5b79c82bc49fe2a7f621a4d0e (diff) |
Upgrade to latest Debian unstable for 0.8.0 series
Diffstat (limited to 'init')
-rwxr-xr-x | init | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -298,9 +298,6 @@ while read l || [ -n "$l" ]; do info "mounting $d (buildos.state) on /state as $t" - o="defaults,noatime,nodiratime" - echo "$d /state $t $o 0 0" >>$fstab - # Check it. # if ! fsck -n -t "$t" "$d"; then @@ -308,6 +305,9 @@ while read l || [ -n "$l" ]; do error fi + o="defaults,noatime,nodiratime" + echo "$d /state $t $o 0 0" >>$fstab + # Mount it now since we need it below. # mkdir -p "/state" @@ -348,6 +348,13 @@ while read l || [ -n "$l" ]; do info "mounting $d (buildos.$l) on $m" + # Check it. + # + if ! btrfs check -p "$d"; then + info "$d (buildos.$l) has errors; run btrfs check -p --repair $d" + error + fi + o="defaults,noatime,nodiratime,user_subvol_rm_allowed" echo "$d $m btrfs $o 0 0" >>$fstab |