#!/bin/sh PREREQ="nbd" prereqs() { echo "$PREREQ" } case "$1" in prereqs) prereqs exit 0 ;; esac # Work around LP bug #696435 if [ "$ROOT" = /dev/nbd0 ] && [ -z "$FSTYPE" ]; then FSTYPE=$(blkid -s TYPE -o value "${ROOT}") if [ -n "$FSTYPE" ] && [ -d /lib/udev/rules.d ]; then cat >> /lib/udev/rules.d/60-persistent-storage-nbd.rules <