slackit-ml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Slackware.it] bug in /etc/rc.d/rc.S slack12.1


From: riko
Subject: Re: [Slackware.it] bug in /etc/rc.d/rc.S slack12.1
Date: Thu, 13 Nov 2008 16:04:13 +0100
User-agent: Thunderbird 2.0.0.17 (X11/20080914)

Marco Bonetti ha scritto:
> ti assicuro che funziona. hai seguito alla lettera le istruzioni
> http://slackware.osuosl.org/slackware-12.1/README_CRYPT.TXT 

ma tu lo usi? hai filesystem cryptati e ti presenta "Enter passphrase: "
prompt all'avvio?

il mio script (ho fatto l'upgrade dalla 12.0) ora e' cosi':

    # Skip LUKS volumes that were already unlocked (in the initrd):
    /sbin/cryptsetup.static status $LUKS 1>/dev/null 2>/dev/null && continue
    if /sbin/cryptsetup.static isLuks $DEV 2>/dev/null ; then
      echo "Unlocking LUKS crypt volume '${LUKS}' on device '$DEV':"
      if [ -n "${PASS}" ]; then
        if [ -f ${PASS} ]; then
          /sbin/cryptsetup.static ${LUKSOPTS} --key-file=${PASS}
luksOpen $DEV $LUKS
        elif [ "${PASS}" != "none" ]; then
          # A password field of 'none' indicates a line for swap:
          echo "${PASS}" | /sbin/cryptsetup.static ${LUKSOPTS} luksOpen
$DEV $LUKS
        #fi  #################Questo lo ho tolto
      else
        for i in seq 1 3 ; do
          /sbin/cryptsetup.static ${LUKSOPTS} luksOpen $DEV $LUKS
</dev/tty0 >/dev/tty0 2>&1
          [ $? -eq 0 ] && break
        done
        fi ##################Questo l'ho inserito
      fi
    elif echo $OPTS | grep -wq swap ; then
      # If any of the volumes is to be used as encrypted swap,
      # then encrypt it using a random key and run mkswap:
      echo "Creating encrypted swap on device '$DEV' mapped to '${LUKS}':"
      /sbin/cryptsetup.static --cipher=aes --key-file=/dev/urandom
--key-size=256 create $LUKS $DEV
      mkswap /dev/mapper/$LUKS
    fi
  done

prima che lo cambiassi la condizione "if [ -n "${PASS}" ]; then" dava
esisto positivo e non entrava mai dentro il ciclo for.

Puoi mandarmi il tuo rc.S? la cosa che penso e' che l'upgrade non sia
andato bene e che io abbia un rc.S diverso dal tuo altrimente non
capisco come puo' funzionare.

Grazie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]