summaryrefslogtreecommitdiff
path: root/old-school/mdadm-dup.sh
AgeCommit message (Collapse)Author
2016-04-27Implement encrypted cdrom ejectionAndrew Cady
This allows the cdrom to be copied onto the outer filesystem (mounted in /outerfs) without storing unencrypted gpg keys there. e.g.: samizdat-eject.sh /outerfs/samizdat.iso This was necessary because the other method probably causes btrfs deadlocks. We do end up copying data twice this way (or three times, probably -- if the ISO is saved), but not _from the cdrom_. And we get to eject immediately after the first copy. Future copies will be from the hard drive. Not too bad.
2016-04-26fixup! Cdrom duplicationAndrew Cady
2016-04-25fixup! Cdrom duplicationAndrew Cady
2016-04-25fixup! Cdrom duplicationAndrew Cady
2016-04-25Cdrom duplicationAndrew Cady
The cdrom can now be copied into the btrfs filesystem (if there is enough space) and hot-removed. This isn't done automatically, though. In fact, the code to do it isn't available anymore after boot; it would have to be copied back onto the system to be run.