Erroring out in case a "wrong" filesystem was chosen.
authorTails developers <amnesia@boum.org>
Thu, 8 Sep 2011 13:48:16 +0000 (15:48 +0200)
committerTails developers <amnesia@boum.org>
Thu, 8 Sep 2011 13:52:46 +0000 (15:52 +0200)
commitadd39bdb96e82687b0d4c0a7a7cfc0423a2b046a
treeb92f47d20c1df6cdc782db98efd024d2587e039b
parent2d4d31be00e0d7f6292ee748d116bb812bd374a6
Erroring out in case a "wrong" filesystem was chosen.

If live-boot finds a "wrong" filesystem that looks OK, then the error message
can be pretty confusing. Panic with an explicit message in this case.

The "is this rootfs valid" test is implemented by checking if the
/usr/share/doc/live-boot/ directory exists: as per Debian Policy 2.3 (Copyright
considerations), this directory must exist on any system where the live-boot
binary package is installed.

Adapted and reformatted from a patch by Christian Hofstaedtler <ch@grml.org>.
scripts/live-bottom/10validateroot [new file with mode: 0755]