Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlay_flush syntax error causes unmount to fail #20

Open
raingloom opened this issue Dec 26, 2016 · 0 comments
Open

overlay_flush syntax error causes unmount to fail #20

raingloom opened this issue Dec 26, 2016 · 0 comments

Comments

@raingloom
Copy link

Contents of /usr/bin/overlay_flush copied verbatim:

#!/bin/bash
           mkdir /run/oroot
           mount -U "1bbe211e-cf1c-45eb-bb29-065a9676f04b"              -o rw,relatime,space_cache,compress=zlib,subvolid=5,subvol=/ "/run/oroot"
           if [ "compressed" = "live" ]; then
              btrfs subvolume snapshot / /oroot-snap
              cd /oroot-snap
            else
              cd /
           fi
           rsync -ax --delete --no-whole-file --inplace $PWD/ /run/oroot              --exclude boot --exclude dev              --exclude mnt --exclude proc --exclude run              --exclude sys --exclude tmp --exclude usr/bin/overlay_flush;
           btrfs subvolume snapshot -r "/run/oroot" "/run/oroot/snapshots/$(date +%s)"
           if [ "compressed" = "live" ]; then
              btrfs subvolume delete /oroot-snap
           fi
           umount /run/oroot &&
           rm -r /run/oroot &&
         

As I understand it, this is always generated from the hook, so this is probably a classic string concatenation bug. The && at the end does not connect to anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant