Giovanni Toraldo ha scritto:
grazie Giovanni, proprio quello che avevo bisogno.2009/12/17 Ezio Da Rin <ezio@linuxnetlive.org>:C'è un comando che posso passare al boot o devo fare uno scriptino?Puoi adattare questo: http://en.gentoo-wiki.com/wiki/Automount_Swap_Early Non è la prima volta che gentoo mi viene in aiuto, anche per la modifica dello squashfs ho trovato supporto. L'ho modificato come sotto e funziona. Credi che sia necessario il supporto LVM2? netlive:/# cat autoswap.sh #!/bin/sh # Dal File originale di: # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # # Autodetect swap partition # author: Mathias Laurin <mathias_laurin@users.sourceforge.net> # from the script found at http://gentoo-wiki.com/TIP_automount_swap # left by an anonymous contributor. # # modificato per Debian: DEVLIST="" DEV="" DEVLIST="$(ls /dev/[h-s]d[a-z][0-9]*)" for DEV in $DEVLIST do FS="$(file -sL "$DEV"| cut -d' ' -f3)" if [ "$FS" = "swap" ] then /sbin/swapon "$DEV" fi done |