From 76fb46699ea35ef8bfce9c531e30ae4d031c45cb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jun 2018 17:49:37 +0200 Subject: Upgrade to latest Debian unstable for 0.8.0 series --- init | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'init') diff --git a/init b/init index 2910791..672c9f1 100755 --- a/init +++ b/init @@ -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 -- cgit v1.1