[RISOLTO] Ancora Grub
Moderatore: Staff
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
[RISOLTO] Ancora Grub
Come dovrei usarla per installare grub nella mia slackware64? Vado direttamente nella directory e dò semplicemente il comando ./SlackBuild, o devo prendere degli accorgimenti particolari (tipo patchare i sorgenti, in questo caso vorrei sapere come si fa)?
- ulisse89
- Packager

- Messaggi: 643
- Iscritto il: sab 17 gen 2009, 12:53
- Nome Cognome: Riccardo
- Slackware: 13.0
- Kernel: 2.6.29.6
- Desktop: Xfce
- Località: Bologna
Re: Ancora Grub
Attenzione però che non te lo installa. Lo devi installare tu a mano.
-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: Ancora Grub
Ho copiato la directory /extra/source/grub in /tmp, e così ho provato, ma ecco il risultato:
Codice: Seleziona tutto
bash-3.1# cd /tmp/grub
bash-3.1# pwd
/tmp/grub
bash-3.1# ./grub.SlackBuild
grub-0.97/
grub-0.97/util/
grub-0.97/util/Makefile.am
grub-0.97/util/Makefile.in
grub-0.97/util/grub-image.in
grub-0.97/util/grub-install.in
grub-0.97/util/grub-md5-crypt.in
grub-0.97/util/grub-set-default.in
grub-0.97/util/grub-terminfo.in
grub-0.97/util/mbchk.c
grub-0.97/util/mkbimage
grub-0.97/README
grub-0.97/acinclude.m4
grub-0.97/configure.ac
grub-0.97/aclocal.m4
grub-0.97/Makefile.am
grub-0.97/Makefile.in
grub-0.97/config.h.in
grub-0.97/configure
grub-0.97/AUTHORS
grub-0.97/COPYING
grub-0.97/ChangeLog
grub-0.97/INSTALL
grub-0.97/NEWS
grub-0.97/THANKS
grub-0.97/TODO
grub-0.97/compile
grub-0.97/config.guess
grub-0.97/config.sub
grub-0.97/depcomp
grub-0.97/install-sh
grub-0.97/missing
grub-0.97/mkinstalldirs
grub-0.97/BUGS
grub-0.97/MAINTENANCE
grub-0.97/netboot/
grub-0.97/netboot/Makefile.am
grub-0.97/netboot/Makefile.in
grub-0.97/netboot/cards.h
grub-0.97/netboot/config.c
grub-0.97/netboot/etherboot.h
grub-0.97/netboot/fsys_tftp.c
grub-0.97/netboot/linux-asm-io.h
grub-0.97/netboot/linux-asm-string.h
grub-0.97/netboot/main.c
grub-0.97/netboot/misc.c
grub-0.97/netboot/nic.h
grub-0.97/netboot/osdep.h
grub-0.97/netboot/pci.c
grub-0.97/netboot/pci.h
grub-0.97/netboot/timer.c
grub-0.97/netboot/timer.h
grub-0.97/netboot/3c509.c
grub-0.97/netboot/3c509.h
grub-0.97/netboot/3c595.c
grub-0.97/netboot/3c595.h
grub-0.97/netboot/3c90x.c
grub-0.97/netboot/cs89x0.c
grub-0.97/netboot/cs89x0.h
grub-0.97/netboot/davicom.c
grub-0.97/netboot/depca.c
grub-0.97/netboot/eepro.c
grub-0.97/netboot/eepro100.c
grub-0.97/netboot/epic100.c
grub-0.97/netboot/epic100.h
grub-0.97/netboot/fa311.c
grub-0.97/netboot/i82586.c
grub-0.97/netboot/lance.c
grub-0.97/netboot/natsemi.c
grub-0.97/netboot/ni5010.c
grub-0.97/netboot/ns8390.c
grub-0.97/netboot/ns8390.h
grub-0.97/netboot/otulip.c
grub-0.97/netboot/otulip.h
grub-0.97/netboot/rtl8139.c
grub-0.97/netboot/sis900.c
grub-0.97/netboot/sis900.h
grub-0.97/netboot/sk_g16.c
grub-0.97/netboot/sk_g16.h
grub-0.97/netboot/smc9000.c
grub-0.97/netboot/smc9000.h
grub-0.97/netboot/tiara.c
grub-0.97/netboot/tlan.c
grub-0.97/netboot/tulip.c
grub-0.97/netboot/via-rhine.c
grub-0.97/netboot/w89c840.c
grub-0.97/netboot/README.netboot
grub-0.97/netboot/3c90x.txt
grub-0.97/netboot/cs89x0.txt
grub-0.97/netboot/sis900.txt
grub-0.97/netboot/tulip.txt
grub-0.97/stage2/
grub-0.97/stage2/apic.h
grub-0.97/stage2/defs.h
grub-0.97/stage2/dir.h
grub-0.97/stage2/disk_inode.h
grub-0.97/stage2/disk_inode_ffs.h
grub-0.97/stage2/fat.h
grub-0.97/stage2/filesys.h
grub-0.97/stage2/freebsd.h
grub-0.97/stage2/fs.h
grub-0.97/stage2/hercules.h
grub-0.97/stage2/i386-elf.h
grub-0.97/stage2/imgact_aout.h
grub-0.97/stage2/iso9660.h
grub-0.97/stage2/jfs.h
grub-0.97/stage2/mb_header.h
grub-0.97/stage2/mb_info.h
grub-0.97/stage2/md5.h
grub-0.97/stage2/nbi.h
grub-0.97/stage2/pc_slice.h
grub-0.97/stage2/serial.h
grub-0.97/stage2/shared.h
grub-0.97/stage2/smp-imps.h
grub-0.97/stage2/term.h
grub-0.97/stage2/terminfo.h
grub-0.97/stage2/tparm.h
grub-0.97/stage2/ufs2.h
grub-0.97/stage2/vstafs.h
grub-0.97/stage2/xfs.h
grub-0.97/stage2/Makefile.am
grub-0.97/stage2/Makefile.in
grub-0.97/stage2/boot.c
grub-0.97/stage2/builtins.c
grub-0.97/stage2/char_io.c
grub-0.97/stage2/cmdline.c
grub-0.97/stage2/common.c
grub-0.97/stage2/disk_io.c
grub-0.97/stage2/fsys_ext2fs.c
grub-0.97/stage2/fsys_fat.c
grub-0.97/stage2/fsys_ffs.c
grub-0.97/stage2/fsys_iso9660.c
grub-0.97/stage2/fsys_jfs.c
grub-0.97/stage2/fsys_minix.c
grub-0.97/stage2/fsys_reiserfs.c
grub-0.97/stage2/fsys_ufs2.c
grub-0.97/stage2/fsys_vstafs.c
grub-0.97/stage2/fsys_xfs.c
grub-0.97/stage2/gunzip.c
grub-0.97/stage2/md5.c
grub-0.97/stage2/serial.c
grub-0.97/stage2/stage2.c
grub-0.97/stage2/terminfo.c
grub-0.97/stage2/tparm.c
grub-0.97/stage2/asm.S
grub-0.97/stage2/bios.c
grub-0.97/stage2/console.c
grub-0.97/stage2/hercules.c
grub-0.97/stage2/smp-imps.c
grub-0.97/stage2/start.S
grub-0.97/stage2/stage1_5.c
grub-0.97/stage2/start_eltorito.S
grub-0.97/stage2/nbloader.S
grub-0.97/stage2/pxeloader.S
grub-0.97/stage2/setjmp.S
grub-0.97/stage2/apm.S
grub-0.97/stage2/size_test
grub-0.97/stage1/
grub-0.97/stage1/Makefile.am
grub-0.97/stage1/Makefile.in
grub-0.97/stage1/stage1.S
grub-0.97/stage1/stage1.h
grub-0.97/lib/
grub-0.97/lib/Makefile.am
grub-0.97/lib/Makefile.in
grub-0.97/lib/getopt.c
grub-0.97/lib/getopt1.c
grub-0.97/lib/getopt.h
grub-0.97/lib/device.c
grub-0.97/lib/device.h
grub-0.97/grub/
grub-0.97/grub/Makefile.am
grub-0.97/grub/Makefile.in
grub-0.97/grub/main.c
grub-0.97/grub/asmstub.c
grub-0.97/docs/
grub-0.97/docs/internals.texi
grub-0.97/docs/boot.S.texi
grub-0.97/docs/kernel.c.texi
grub-0.97/docs/multiboot.h.texi
grub-0.97/docs/Makefile.am
grub-0.97/docs/Makefile.in
grub-0.97/docs/stamp-vti
grub-0.97/docs/version.texi
grub-0.97/docs/mdate-sh
grub-0.97/docs/texinfo.tex
grub-0.97/docs/boot.S
grub-0.97/docs/kernel.c
grub-0.97/docs/multiboot.h
grub-0.97/docs/grub.texi
grub-0.97/docs/multiboot.texi
grub-0.97/docs/menu.lst
grub-0.97/docs/grub.8
grub-0.97/docs/mbchk.1
grub-0.97/docs/grub-install.8
grub-0.97/docs/grub-md5-crypt.8
grub-0.97/docs/grub-terminfo.8
grub-0.97/docs/help2man
grub-0.97/docs/src2texi
grub-0.97/docs/grub.info
grub-0.97/docs/multiboot.info
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Nrup a/stage2/fsys_ext2fs.c b/stage2/fsys_ext2fs.c
|--- a/stage2/fsys_ext2fs.c 2004-08-08 20:19:18.000000000 +0200
|+++ b/stage2/fsys_ext2fs.c 2008-01-30 14:27:20.000000000 +0100
--------------------------
Patching file stage2/fsys_ext2fs.c using Plan A...
Hunk #1 succeeded at 79.
Hunk #2 succeeded at 263.
Hunk #3 succeeded at 601.
Hunk #4 succeeded at 613.
done
patching file docs/multiboot.h
patching file docs/x86_64.txt
patching file grub/asmstub.c
patching file stage2/asm.S
patching file stage2/boot.c
patching file stage2/builtins.c
patching file stage2/elf.h
patching file stage2/shared.h
patching file stage2/x86-64-elf.h
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for gcc... (cached) gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
bash-3.1# - fgcl2k
- Linux 1.x

- Messaggi: 137
- Iscritto il: gio 29 ott 2009, 10:14
- Nome Cognome: Federico
- Slackware: 14.1 (64bit)
- Kernel: 3.10.17
- Desktop: KDE 4.13.3
Re: Ancora Grub
E' un po' lungo ma verso la fine dovrebbe esserci qualche compilazione che è andata male. Se ricordo bene di solito il messaggio "C compiler cannot create executables" viene quando c'è qualche problema nella toolchain del compilatore (header di sistema mancanti, architettura sbagliata, ecc.).See `config.log' for more details
- fgcl2k
- Linux 1.x

- Messaggi: 137
- Iscritto il: gio 29 ott 2009, 10:14
- Nome Cognome: Federico
- Slackware: 14.1 (64bit)
- Kernel: 3.10.17
- Desktop: KDE 4.13.3
Re: Ancora Grub
Una cosa del tipo:
Codice: Seleziona tutto
ARCH=x86_64 ./grub.SlackBuild-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: Ancora Grub
Perchè la compilazione andasse a buon fine avevo bisogno delle multilib (grub compila solo a 32 bit), così ho installato le multilib di alien da QUI (però non ho installato i contenuti delle directory slackware64-compat32, source e static). Così ho rifatto il procedimento ed è stato creato finalmente il file /tmp/grub-0.97-x86_64-7.txz, a qesto punto l'ho installato con installpkg e infine
Codice: Seleziona tutto
bash-3.1# grub-install /dev/sda
The file /boot/grub/stage1 not read correctly.Codice: Seleziona tutto
ëH^Ã^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^$
öÂ^À^O^Äê^@é^Ã^@¾^E|ÆDÿ^@f1À^Èð@f^ÉD^D1Ã’^ÈÊÃâ^B^Èè^Èô@^ÉD^H1À^ÈÃÀè^Bf^É^Df¡D|f1$
f1Òf÷t^D^ÈT^K^ÉD^L;D^H}<^ÊT^MÀâ^F^ÊL
þÃ^HÑ^Êl^LZ^Êt^K»^@p^ÎÃ1Û¸^A^BÃ^Sr*^ÌÃ^ÃŽ^FH|`^^¹^@^A^ÎÛ1ö1ÿüó¥^_aÿ&B|¾^Ã…}è@^@ë^$
- ulisse89
- Packager

- Messaggi: 643
- Iscritto il: sab 17 gen 2009, 12:53
- Nome Cognome: Riccardo
- Slackware: 13.0
- Kernel: 2.6.29.6
- Desktop: Xfce
- Località: Bologna
Re: Ancora Grub
-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: Ancora Grub
In QUESTO SITO c'è una guida per poter patchare i sorgenti di grub a dovere.
è tutto chiaro, ma arrivato a questo punto non so continuare:
Cioè dovrei modificare lo slackbuild in modo che includa la patch, ma non so che modifica apportare (sono un po' niubbo in quanto a compilazioni)!!Now we have to apply the ext4 patch since by default grub is compiled
without ext4 support. you can get the patch from http://svn.cross-lfs.org/svn/repos/cros ... t4-1.patch.
Then its quite simple, just modify the grub.SlackBuild file to include
the patch and make the package.
Ora, questo è lo slackbuild--->grub.SlackBuild, e questa è la patch di cui parlano--->grub-0.97-ext4-1.patch, che modifica dovrei apportare di preciso?
Se mi aiutate e funziona vi prometto che perderò una mezz'oretta della mia vita (magari anche più) per scrivere una bella pagina del wiki sull'argomento.
- mohaa
- Linux 1.x

- Messaggi: 181
- Iscritto il: mar 4 mar 2008, 8:52
- Slackware: 12.1
- Kernel: 3
- Desktop: Gnome2
- Distribuzione: Gentoo
- Località: Francia
Re: Ancora Grub
Codice: Seleziona tutto
$ ls /boot/grub/*1_5Codice: Seleziona tutto
/boot/grub/e2fs_stage1_5 /boot/grub/minix_stage1_5
/boot/grub/fat_stage1_5 /boot/grub/reiserfs_stage1_5
/boot/grub/ffs_stage1_5 /boot/grub/ufs2_stage1_5
/boot/grub/iso9660_stage1_5 /boot/grub/vstafs_stage1_5
/boot/grub/jfs_stage1_5 /boot/grub/xfs_stage1_5
-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: Ancora Grub
Of course, infact in LinuxQuestions they suggest to copy the file e2fs_stage1_5 as ext4_stage1_5:mohaa ha scritto:All supported FS should have dedicated stage1_5 file under /boot/grubcan help having this info. A possible output :Codice: Seleziona tutto
$ ls /boot/grub/*1_5Codice: Seleziona tutto
/boot/grub/e2fs_stage1_5 /boot/grub/minix_stage1_5 /boot/grub/fat_stage1_5 /boot/grub/reiserfs_stage1_5 /boot/grub/ffs_stage1_5 /boot/grub/ufs2_stage1_5 /boot/grub/iso9660_stage1_5 /boot/grub/vstafs_stage1_5 /boot/grub/jfs_stage1_5 /boot/grub/xfs_stage1_5
Codice: Seleziona tutto
#cd /boot/grub
#cp -v e2fs_stage1_5 ext4_stage1_5 -
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: Ancora Grub
La domanda, che è sempre valida, è sempre la stessa: qualcuno sa che modifica dovrei apportare di preciso al file grub.SlackBuild (presente nella directory /extra/source/grub/ del cd di installazione di Slackware64) perchè includa questa patch----->grub-0.97-ext4-1.patch?
Questo è il file grub.SlackBuild in questione:
Codice: Seleziona tutto
#!/bin/sh
# Copyright 2009 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
VERSION=0.97
GCVER=1.28
ARCH=${ARCH:-x86_64}
BUILD=7
NUMJOBS=${NUMJOBS:-" -j7 "}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-grub
rm -rf $PKG
mkdir -p $PKG $TMP
cd $TMP
rm -rf grub-$VERSION
tar xvf $CWD/grub-$VERSION.tar.gz || exit 1
cd grub-$VERSION || exit 1
# This is needed for the optional (but now default) increase in
# inode size from 128 to 256 bytes with ext2 and ext3:
zcat $CWD/grub_support_256byte_inode.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/grub-0.97-x86_64.patch.gz | patch -p1 || exit 1
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--infodir=/usr/info \
--mandir=/usr/man
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
# Compress and if needed symlink the man pages:
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
for manpagedir in $(find . -type d -name "man*") ; do
( cd $manpagedir
for eachpage in $( find . -type l -maxdepth 1) ; do
ln -s $( readlink $eachpage ).gz $eachpage.gz
rm $eachpage
done
gzip -9 *.?
)
done
)
fi
# Compress info pages and purge "dir" file from the package:
if [ -d $PKG/usr/info ]; then
( cd $PKG/usr/info
rm -f dir
gzip -9 *
)
fi
mkdir -p $PKG/usr/doc/grub-$VERSION
cp -a \
AUTHORS BUGS COPYING INSTALL MAINTENANCE NEWS README THANKS TODO \
$PKG/usr/doc/grub-$VERSION
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
# Add Kent's grubconfig tool:
cd $TMP
rm -rf grubconfig-$GCVER
tar xf $CWD/grubconfig-${GCVER}.tar.gz || exit 1
cd grubconfig-$GCVER || exit 1
zcat $CWD/grubconfig_localefix.patch.gz | patch || exit 1
chown -R root:root .
chmod 644 README
chmod 755 grubconfig
mkdir -p $PKG/usr/doc/grubconfig-${GCVER}
cp -a README $PKG/usr/doc/grubconfig-${GCVER}
cp -a grubconfig $PKG/usr/sbin/grubconfig
cd $PKG
/sbin/makepkg -l y -c n $TMP/grub-$VERSION-$ARCH-$BUILD.txz
Codice: Seleziona tutto
patch -p1 < $CWD/grub-0.97-ext4-1.patch- ulisse89
- Packager

- Messaggi: 643
- Iscritto il: sab 17 gen 2009, 12:53
- Nome Cognome: Riccardo
- Slackware: 13.0
- Kernel: 2.6.29.6
- Desktop: Xfce
- Località: Bologna
Re: Ancora Grub
Codice: Seleziona tutto
cd grub-$VERSION || exit 1
EDIT: Ho notato che però in slackware 32 bit c'è già inclusa la patch per il supporto al ext4. Non so perchè non l'abbia inclusa anche nella 64 bit ma un motivo ci sarà. Io ti ho detto come patchare i sorgenti ma non sono sicuro del suo funzionamento poi.
-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: Ancora Grub
Ora spero di far felici molti slackers condividendo con loro il mio sapere. Ecco quello che ho fatto:
-innanzitutto ho scaricato le multilib di Alien da qui ---> http://connie.slackware.com/~alien/multilib/. Sono necessarie per poter compilare grub
-ho scaricato tutti i file presenti in questa directory ---> ftp://slackware.oregonstate.edu/pub/sla ... urce/grub/ dentro una directory omonima /home/mio_nome_utente/grub
-ho scaricato il file grub-0.97-ext4-1.patch dentro la stessa directory /home/mio_nome_utente/grub, ed ho modificato il file grub.SlackBuild inserendo la stringa
Codice: Seleziona tutto
patch -p1 < $CWD/grub-0.97-ext4-1.patchCodice: Seleziona tutto
cd grub-$VERSION || exit 1-a quel punto ho dato
Codice: Seleziona tutto
# chmod +x grub.SlackBuild
# ./grub.SlackBuildCodice: Seleziona tutto
# cd /tmp
# installpkg grub-0.97-x86_64-7.txz-a questo punto ho creato, come consigliano sul topic di LQ che ho postato, il file ext4_stage1_5:
Codice: Seleziona tutto
# cd /boot/grub
# cp -v e2fs_stage1_5 ext4_stage1_5PS: l'avevo notato anch'io che su slackware32 c'era la patch per il supporto ad ext4 e neanch'io so perchè non è stata inserita, però funziona davvero tutto.
-
tom
- Packager

- Messaggi: 407
- Iscritto il: dom 1 nov 2009, 12:53
- Nome Cognome: Tommaso D'Anna
- Slackware: 13.37
- Kernel: 2.6.37.6
- Desktop: xfce
Re: [RISOLTO] Ancora Grub
Ho aggiornato il grub.SlackBuild che ora, udite udite, non necessita più di alcun comando post-install per funzionare con ext4. Semplicemente bisogna installare il pacchetto txz e basta. Potete dare grubconfig (oppure grub-install se vi piace di più). Mi sono fatto "regalare" uno spazio web dai developers di salix dove ho inserito il pacchetto ed i sorgenti, eccolo:
http://people.salixos.org/tasodan/x86_64/a/grub/