7 uuid_file
='/etc/hostuuid'
10 export PATH
=$PATH:/sbin
:/usr
/sbin
:/bin
:/usr
/bin
12 .
/usr
/share
/debconf
/confmodule
16 hostuuid
--quiet --nostdin
20 echo -n $RET | hostuuid
--quiet
24 if [ "$1" = "configure" ] ||
[ "$1" = "reconfigure" ]; then
25 if test_uuid_file
; then
28 # this is set to high as _if_ someone installs this package, the
30 db_input high hostuuid
/enter_uuid || true
32 db_get hostuuid
/enter_uuid
33 # if $RET is empty, generate a UUID
34 if [ -z "$RET" ]; then
36 # hostuuid --create --quiet --nostdin
37 hostuuid
--create --nostdin
40 # hostuuid --create --quiet --nostdin --input $RET
41 hostuuid
--create --nostdin --input $RET
44 db_fset hostuuid
/faulty_uuid seen false
45 db_input critical hostuuid
/faulty_uuid || true