Factorizing loops on removable/non-removable devices.
authorTails developers <amnesia@boum.org>
Mon, 1 Nov 2010 17:23:05 +0000 (18:23 +0100)
committerTails developers <amnesia@boum.org>
Wed, 7 Sep 2011 12:53:41 +0000 (14:53 +0200)
commit3f02456e392ead3abf36bc181692fcb75c8f16f3
tree46f6f223f2846b9fba18e905fa44b7d6e8fdae93
parent209828c38d8af6fa2eab68cd668ca9109261f249
Factorizing loops on removable/non-removable devices.

The already duplicated code will be needed a few more times for the upcoming
persistent-media={removable,removable-usb} boot option. Copy/pasting it a few
more times seems the wrong way to go, hence this factorization.

Depending on the place they are used, the newly introduced functions must return
a list of devices named either /sys/block/* or /dev/*. Their first parameter
therefore specifies the wanted output format (default is /dev/* as it is the
most often used).
scripts/live
scripts/live-helpers