wok-next annotate linux/receipt @ rev 12812
linux: up to 3.2.14 for ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 20 03:10:40 2012 +0200 (2012-05-20) |
parents | 2b28b3fc0a64 |
children | e0a72cb63515 |
rev | line source |
---|---|
pankso@3 | 1 # SliTaz package receipt. |
pankso@3 | 2 |
pankso@3 | 3 PACKAGE="linux" |
pankso@12812 | 4 VERSION="3.2.14" |
pankso@12812 | 5 KBASEVER="${VERSION:0:3}" |
pankso@3 | 6 CATEGORY="base-system" |
pankso@3 | 7 SHORT_DESC="The Linux kernel and modules." |
pankso@3864 | 8 MAINTAINER="devel@slitaz.org" |
pankso@12812 | 9 TARBALL="$PACKAGE-$KBASEVER.tar.xz" |
pankso@3 | 10 WEB_SITE="http://www.kernel.org/" |
pankso@12285 | 11 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL" |
pankso@12803 | 12 HOST_ARCH="i486 arm x86_64" |
pankso@12803 | 13 |
pankso@12812 | 14 DEPENDS="kmod" |
pankso@12812 | 15 BUILD_DEPENDS="slitaz-toolchain perl git xz lzma patch uclibc-cross-compiler-x86_64" |
pankso@12812 | 16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz" |
pankso@12812 | 17 |
pankso@12803 | 18 # Aufs enable chroot |
pascal@12625 | 19 AUFS_NOT_SUPPORTED="uclibc-cross-compiler-x86_64 is not compatible with aufs 8(" |
pankso@3 | 20 |
pankso@12803 | 21 # This will save/restore the modules.dep but we want to regenerate it |
pankso@12803 | 22 # on install/upgrade. |
pankso@12803 | 23 #CONFIG_FILES="/lib/modules/$KBASEVER-slitaz/modules.dep" |
pankso@12803 | 24 |
pankso@12803 | 25 case "$ARCH" in |
pankso@12803 | 26 arm) |
pankso@12803 | 27 # Old school way :-) Until ARM was tested on real hardware and |
pankso@12803 | 28 # we know wich modules/features we realy need for ARM machines. |
pankso@12803 | 29 # No deps on kmod since we use Busybox modutils for ARM. |
pankso@12812 | 30 #TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12812 | 31 DEPENDS="" |
pankso@12812 | 32 BUILD_DEPENDS="xz" ;; |
pankso@12803 | 33 esac |
pankso@9731 | 34 |
pankso@3 | 35 # Rules to configure and make the package. |
pankso@3 | 36 compile_rules() |
pankso@3 | 37 { |
pankso@9731 | 38 cd $src |
pankso@12803 | 39 |
pankso@12803 | 40 case "$ARCH" in |
pankso@12803 | 41 arm) |
pankso@12803 | 42 echo "Compiling: ARM Kernel" |
pankso@12812 | 43 if [ ! -f $SRC/$(basename $PATCH) ]; then |
pankso@12812 | 44 wget $PATCH -O $SRC/$(basename $PATCH) |
pankso@12812 | 45 fi |
pankso@12803 | 46 make mrproper && |
pankso@12812 | 47 xzcat $SRC/$(basename $PATCH) | patch -Np1 |
pankso@12803 | 48 cp -f $stuff/$ARCH/linux-slitaz.config .config && |
pankso@12803 | 49 make ARCH=$ARCH CROSS_COMPILE=${HOST_SYSTEM}- bzImage && |
pankso@12803 | 50 make ARCH=$ARCH CROSS_COMPILE=${HOST_SYSTEM}- modules && |
pankso@12803 | 51 make ARCH=$ARCH CROSS_COMPILE=${HOST_SYSTEM}- \ |
pankso@12803 | 52 INSTALL_MOD_PATH=$DESTDIR modules_install && |
pankso@12803 | 53 mkdir -p $DESTDIR/boot && |
pankso@12803 | 54 mv arch/arm/boot/compressed/vmlinux \ |
pankso@12803 | 55 $DESTDIR/boot/linux-$VERSION-slitaz-$ARCH |
pankso@12803 | 56 return 0 ;; |
pankso@12803 | 57 x86_64) |
pankso@12803 | 58 echo "TODO: Maybe use default ? But cross compile in x86_64 chroot" |
pankso@12803 | 59 echo "so we can remove the 64 build by uclibc-cross-compiler-x86_64" |
pankso@12803 | 60 return 0 ;; |
pankso@12803 | 61 esac |
pankso@12803 | 62 |
slaxemulator@7131 | 63 # this is code to help update the kernel version faster |
slaxemulator@7131 | 64 #for i in $(grep -l 'WANTED="linux"' $WOK/*/receipt) |
slaxemulator@7131 | 65 #do |
slaxemulator@7131 | 66 # sed -i 's|VERSION="OLDVERSION"|VERSION="NEWVERSION"|g' $i |
slaxemulator@7131 | 67 #done |
slaxemulator@8616 | 68 |
gokhlayeh@11395 | 69 [ ! -x /usr/bin/cook ] && report open-bloc |
pankso@9731 | 70 |
pankso@9731 | 71 # Check for Aufs and cook it if unbuilt. |
pankso@9731 | 72 echo "Checking for Aufs packages..." |
pankso@12285 | 73 _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pankso@12285 | 74 if [ -x /usr/bin/cook ]; then |
gokhlayeh@11395 | 75 # Give info an redirect to /dev/null since aufs got it own log. |
gokhlayeh@11395 | 76 AUFSDIR=$WOK/aufs/source/aufs-${_AUFSVER} |
pankso@12285 | 77 [ -d "$AUFSDIR" ] && rm -rf $AUFSDIR |
pankso@12285 | 78 #echo "Cook: aufs $_AUFSVER" |
pankso@12288 | 79 cook aufs --getsrc |
pankso@12288 | 80 mkdir -p $WOK/aufs/source/ |
pankso@12289 | 81 tar xjf $SRC/aufs-${_AUFSVER}.tar.bz2 -C $WOK/aufs/source/ |
pankso@12285 | 82 elif [ -x /usr/bin/tazwok ]; then |
pankso@12285 | 83 # we just need aufs source. Also cooking now is a bad idea since it |
pankso@12285 | 84 # needs linux-module-headers. The one your cooking not the one from the web. |
gokhlayeh@11395 | 85 AUFSDIR=$WOK/aufs/aufs-${_AUFSVER} |
gokhlayeh@11395 | 86 [ -d "$AUFSDIR" ] && rm -rf $AUFSDIR |
gokhlayeh@11395 | 87 tazwok get-src aufs --target=$AUFSDIR || { report close-bloc; return 1; } |
pankso@9731 | 88 fi |
pankso@12285 | 89 echo "cook:linux" > $command |
pankso@12285 | 90 |
pankso@9731 | 91 echo "Copying Aufs files and patches..." |
slaxemulator@7297 | 92 cp -a $AUFSDIR/Documentation $AUFSDIR/fs $AUFSDIR/include $src |
pankso@12285 | 93 cp -a $AUFSDIR/aufs3-*.patch $stuff |
pankso@12285 | 94 |
pankso@4251 | 95 # SliTaz db |
pankso@12285 | 96 [ -d $WOK/$PACKAGE/source/slitaz ] && rm -rf $WOK/$PACKAGE/source/slitaz 2> /dev/null |
pankso@12285 | 97 mkdir -p $WOK/$PACKAGE/source/slitaz |
pankso@12290 | 98 echo "$WGET_URL" > $WOK/$PACKAGE/source/slitaz/url |
pankso@12285 | 99 cp $stuff/gztazmod.sh $stuff/list_modules.sh $WOK/$PACKAGE/source/slitaz |
pankso@12285 | 100 cp $stuff/bootloader.sh $WOK/$PACKAGE/source/slitaz |
pankso@12803 | 101 |
pankso@5640 | 102 # Apply patches |
pankso@9731 | 103 echo "Applying patches..." |
pascal@521 | 104 while read patch_file; do |
pankso@12285 | 105 echo "$patch_file" >> $WOK/$PACKAGE/source/slitaz/patches |
pankso@12285 | 106 cp $stuff/$patch_file $WOK/$PACKAGE/source/slitaz |
pascal@1442 | 107 if [ -f done.$patch_file ]; then |
pascal@1442 | 108 echo "Skipping $patch_file" |
pascal@1442 | 109 continue |
pascal@1442 | 110 fi |
pascal@521 | 111 echo "Apply $patch_file" |
pankso@12285 | 112 if [ -x /usr/bin/cook ]; then |
pankso@12285 | 113 patch -p1 < $WOK/$PACKAGE/source/slitaz/$patch_file || return 1 |
pankso@12285 | 114 elif [ -x /usr/bin/tazwok ]; then |
pankso@12285 | 115 patch -p1 < $WOK/$PACKAGE/source/slitaz/$patch_file || { report close-bloc; return 1; } |
pankso@12285 | 116 fi |
pascal@1442 | 117 touch done.$patch_file |
pascal@521 | 118 done <<EOT |
pankso@12285 | 119 $PACKAGE-diff.u |
pankso@12285 | 120 $PACKAGE-header.u |
pankso@12285 | 121 $PACKAGE-freeinitrd.u |
pankso@12285 | 122 aufs3-base.patch |
pankso@12285 | 123 aufs3-standalone.patch |
pankso@12285 | 124 aufs3-loopback.patch |
pankso@12285 | 125 aufs3-proc_map.patch |
pankso@12285 | 126 channel-negative-one-maxim.patch |
pankso@12285 | 127 mac80211.compat08082009.wl_frag+ack_v1.patch |
pascal@521 | 128 EOT |
pankso@9731 | 129 |
pankso@12285 | 130 if [ "$KBASEVER" != "$VERSION" ]; then |
pankso@12285 | 131 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then |
pankso@12285 | 132 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1 |
pankso@12285 | 133 touch done.patch-$VERSION |
pankso@12285 | 134 else |
pankso@12285 | 135 wget $PATCH -O $SRC/$(basename $PATCH) |
pankso@12285 | 136 xzcat $SRC/$(basename $PATCH) | patch -Np1 |
pankso@12285 | 137 touch done.patch-$VERSION |
pankso@12285 | 138 fi |
pankso@12285 | 139 fi |
pankso@12285 | 140 |
pankso@12285 | 141 sed -i 's|SUBLEVEL =.*|SUBLEVEL =|g' Makefile |
pankso@12285 | 142 |
gokhlayeh@11395 | 143 [ ! -x /usr/bin/cook ] && report step "Make kernel proper and then build lguest" |
pankso@12294 | 144 [ -x /usr/bin/cook ] && echo "Make kernel proper and then build lguest" |
pankso@3864 | 145 make mrproper |
pankso@12285 | 146 cd Documentation/virtual/lguest |
pankso@12285 | 147 if [ -x /usr/bin/cook ]; then |
pankso@12285 | 148 make lguest || return 1 |
pankso@12285 | 149 elif [ -x /usr/bin/tazwok ]; then |
pankso@12285 | 150 make lguest || { report close-bloc; return 1; } |
pankso@12285 | 151 fi |
slaxemulator@8681 | 152 cd $src |
pankso@12803 | 153 |
pascal@12570 | 154 case "$opt" in |
pascal@12570 | 155 *--no64*);; |
pascal@12570 | 156 *) |
pankso@12294 | 157 # |
pankso@12294 | 158 # Arch x86_64 |
pankso@12294 | 159 # |
pankso@12294 | 160 [ ! -x /usr/bin/cook ] && report step "Make bzImage64 without modules first" |
pankso@12294 | 161 [ -x /usr/bin/cook ] && echo "Building x86_64 Kernel" |
pankso@12803 | 162 |
pankso@12285 | 163 # Build bzImage64 without modules first |
pascal@12293 | 164 cp -f $stuff/$PACKAGE-slitaz.config64 .config |
pankso@12285 | 165 sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config |
pankso@12803 | 166 |
pankso@12803 | 167 # We can't keep every driver in staging |
pankso@12285 | 168 sed -i -e 's/^CONFIG_RTL8192/#&/' \ |
pankso@12285 | 169 -e 's/^CONFIG_R8187SE/#&/' \ |
pankso@12285 | 170 -e 's/^CONFIG_RT2870/#&/' .config |
pankso@12285 | 171 yes '' | make ARCH=x86_64 oldconfig |
pankso@12285 | 172 if [ -x /usr/bin/cook ]; then |
pankso@12285 | 173 make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- bzImage || exit 1 |
pankso@12285 | 174 elif [ -x /usr/bin/tazwok ]; then |
pankso@12285 | 175 make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- bzImage || { report close-bloc; return 1; } |
pankso@12285 | 176 fi |
pankso@12285 | 177 [ -d $PWD/_pkg ] || mkdir -p $DESTDIR/linux64 |
pankso@12285 | 178 mv arch/x86/boot/bzImage $DESTDIR/linux64 |
pankso@12285 | 179 mv System.map System.map-without-modules64 |
pankso@12285 | 180 |
pankso@12285 | 181 [ ! -x /usr/bin/cook ] && report step "Now build bzImage64 with modules" |
pankso@12803 | 182 |
pankso@12285 | 183 # Build bzImage64 with modules |
pascal@12293 | 184 cp -f $stuff/$PACKAGE-slitaz.config64 .config |
pankso@12285 | 185 #make ARCH=x86_64 oldconfig |
pankso@12285 | 186 ln .config $WOK/$PACKAGE/slitaz/config64 |
pankso@12285 | 187 make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- bzImage && |
pankso@12285 | 188 make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- modules && |
pankso@12285 | 189 make ARCH=x86_64 INSTALL_MOD_PATH=$DESTDIR/linux64 modules_install && |
pankso@12285 | 190 make ARCH=x86_64 INSTALL_HDR_PATH=$DESTDIR/linux64/usr headers_install && |
pankso@12285 | 191 if [ -x /usr/bin/cook ]; then |
pankso@12285 | 192 [ -s arch/x86/boot/bzImage ] || return 1 |
pankso@12285 | 193 elif [ -x /usr/bin/tazwok ]; then |
pankso@12285 | 194 [ -s arch/x86/boot/bzImage ] || { report close-bloc; return 1; } |
pankso@12285 | 195 fi |
pankso@12285 | 196 mkdir -p $DESTDIR/linux64/boot 2> /dev/null |
pankso@12285 | 197 mv arch/x86/boot/bzImage $DESTDIR/linux64/boot/vmlinuz-$VERSION-slitaz |
pankso@12285 | 198 ln System.map System.map-modules64 |
pankso@12285 | 199 ln Module.symvers Module.symvers-modules64 |
pascal@12570 | 200 esac |
pankso@12803 | 201 |
pankso@12294 | 202 # |
pankso@12294 | 203 # Standard kernel |
pankso@12294 | 204 # |
pankso@12294 | 205 [ ! -x /usr/bin/cook ] && report step "Make bzImage without modules first" |
pankso@12294 | 206 [ -x /usr/bin/cook ] && echo "Building standard kernel..." |
pankso@12803 | 207 |
pankso@12294 | 208 # Build bzImage without modules first |
pankso@12294 | 209 cp -f $stuff/$PACKAGE-slitaz.config .config |
pankso@12294 | 210 sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config |
pankso@12803 | 211 |
pankso@12803 | 212 # We can't keep every driver in staging |
pankso@12294 | 213 sed -i -e 's/^CONFIG_RTL8192/#&/' \ |
pankso@12294 | 214 -e 's/^CONFIG_R8187SE/#&/' \ |
pankso@12294 | 215 -e 's/^CONFIG_RT2870/#&/' .config |
pankso@12294 | 216 yes '' | make oldconfig |
pankso@12294 | 217 if [ -x /usr/bin/cook ]; then |
pankso@12294 | 218 make -j 4 bzImage || exit 1 |
pankso@12294 | 219 elif [ -x /usr/bin/tazwok ]; then |
pankso@12294 | 220 make -j 4 bzImage || { report close-bloc; return 1; } |
pankso@12294 | 221 fi |
pankso@12294 | 222 [ -d $DESTDIR ] || mkdir -p $DESTDIR |
pankso@12294 | 223 mv arch/x86/boot/bzImage $DESTDIR |
pankso@12294 | 224 mv System.map System.map-without-modules |
pankso@12294 | 225 |
pankso@12294 | 226 [ ! -x /usr/bin/cook ] && report step "Now build bzImage with modules" |
pankso@12803 | 227 |
pankso@12294 | 228 # Build bzImage with modules |
pankso@12294 | 229 cp -f $stuff/$PACKAGE-slitaz.config .config |
pankso@12294 | 230 #make oldconfig |
pankso@12294 | 231 ln .config $WOK/$PACKAGE/source/slitaz/config |
pankso@12294 | 232 make -j 4 bzImage && |
pankso@12294 | 233 make -j 4 modules && |
pankso@12294 | 234 make INSTALL_MOD_PATH=$DESTDIR modules_install && |
pankso@12294 | 235 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install && |
pankso@12294 | 236 if [ -x /usr/bin/cook ]; then |
pankso@12294 | 237 [ -s arch/x86/boot/bzImage ] || return 1 |
pankso@12294 | 238 elif [ -x /usr/bin/tazwok ]; then |
pankso@12294 | 239 [ -s arch/x86/boot/bzImage ] || { report close-bloc; return 1; } |
pankso@12294 | 240 fi |
pankso@12294 | 241 mkdir -p $DESTDIR/boot 2> /dev/null |
pankso@12294 | 242 mv arch/x86/boot/bzImage $DESTDIR/boot/vmlinuz-$VERSION-slitaz |
pankso@12803 | 243 |
gokhlayeh@11395 | 244 [ ! -x /usr/bin/cook ] && report step "Compressing all modules" |
pankso@12803 | 245 |
slaxemulator@6719 | 246 # Compress all modules. |
pankso@12285 | 247 $stuff/gztazmod.sh $DESTDIR/lib/modules/$KBASEVER-slitaz |
pankso@12285 | 248 $stuff/gztazmod.sh $DESTDIR/linux64/lib/modules/$KBASEVER-slitaz |
pascal@7667 | 249 ln System.map System.map-modules |
pascal@7667 | 250 ln Module.symvers Module.symvers-modules |
pankso@12803 | 251 |
gokhlayeh@11395 | 252 if [ ! -x /usr/bin/cook ]; then |
gokhlayeh@11395 | 253 report close-bloc |
gokhlayeh@11395 | 254 fi |
pankso@3864 | 255 } |
erjo@253 | 256 |
pankso@3 | 257 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@3 | 258 genpkg_rules() |
pankso@3 | 259 { |
pankso@12803 | 260 case "$ARCH" in |
pankso@12803 | 261 arm) |
pankso@12803 | 262 echo "Packing: ARM Kernel" |
pankso@12803 | 263 cp -a $install/* $fs |
pankso@12803 | 264 rm -f $fs/lib/modules/*/build $fs/lib/modules/*/source |
pankso@12803 | 265 return 0 ;; |
pankso@12803 | 266 x86_64) |
pankso@12803 | 267 echo "TODO: use default or custom x86_64 packing" |
pankso@12803 | 268 return 0 ;; |
pankso@12803 | 269 esac |
pankso@12803 | 270 |
pascal@12300 | 271 export PACKAGE VERSION |
pascal@521 | 272 local path |
pascal@7656 | 273 cp -a $_pkg/boot $fs |
pankso@3 | 274 # Compress all modules. |
pascal@12558 | 275 $stuff/gztazmod.sh $_pkg/lib/modules/$KBASEVER-slitaz |
pankso@12285 | 276 path=$fs/lib/modules/$KBASEVER-slitaz/kernel |
pascal@521 | 277 mkdir -p $path |
pankso@12285 | 278 cp -a $_pkg/lib/modules/$KBASEVER-slitaz/mo* \ |
pankso@12285 | 279 $fs/lib/modules/$KBASEVER-slitaz |
pankso@5640 | 280 # Get the base modules |
pascal@886 | 281 export src |
pascal@886 | 282 export _pkg |
pankso@12285 | 283 mkdir -p $WOK/$PACKAGE/source/tmp |
slaxemulator@9701 | 284 $stuff/list_modules.sh \ |
pankso@12285 | 285 $(cat $stuff/modules.list) > $WOK/$PACKAGE/source/tmp/modules.list |
pankso@3864 | 286 while read module; do |
pascal@521 | 287 dir=$(dirname $module) |
pankso@535 | 288 [ -d $path/$dir ] || mkdir -p $path/$dir |
pankso@12285 | 289 cp -a $_pkg/lib/modules/$KBASEVER-slitaz/kernel/$module $path/$dir |
pankso@12285 | 290 done < $WOK/$PACKAGE/source/tmp/modules.list |
pascal@397 | 291 # Remove unresolved links |
pankso@12285 | 292 rm -f $fs/lib/modules/$KBASEVER-slitaz/build |
pankso@12285 | 293 rm -f $fs/lib/modules/$KBASEVER-slitaz/source |
pankso@12285 | 294 # Cook all packages with a kernel module |
pankso@12285 | 295 for i in $(cd $WOK; grep -l 'tazwok cook linux$' */receipt) |
pankso@12285 | 296 do |
pankso@12285 | 297 echo tazwok cook ${i%/receipt} |
pankso@12285 | 298 done |
pankso@12285 | 299 # Fixed modules.dep to use right path |
pankso@12285 | 300 # saves 100kb of space too |
pankso@12285 | 301 sed -i "s|$_pkg||g" $fs/lib/modules/$KBASEVER-slitaz/modules.dep |
pankso@12285 | 302 sed -i "s|99.98.$KBASEVER-slitaz|$KBASEVER-slitaz|g" $fs/lib/modules/$KBASEVER-slitaz/modules.dep |
pankso@12803 | 303 # Check and echo any module in kernel .config that's not added to |
pankso@5640 | 304 # one of linux-* pkgs |
pankso@12803 | 305 $stuff/check_modules.sh |
pankso@3 | 306 } |
pankso@3 | 307 |
pankso@3 | 308 # Pre and post install commands for Tazpkg. |
pankso@3 | 309 post_install() |
pankso@3 | 310 { |
pascal@521 | 311 echo "Processing post-install commands..." |
pankso@12803 | 312 case "$ARCH" in |
pankso@12803 | 313 arm) |
pankso@12803 | 314 echo "Kernel : /boot/linux-$VERSION-slitaz-$ARCH" |
pankso@12803 | 315 echo "Modules: /lib/modules/$VERSION-slitaz" |
pankso@12803 | 316 return 0 ;; |
pankso@12803 | 317 esac |
pankso@12285 | 318 chroot "$1/" depmod -a $KBASEVER-slitaz |
pankso@5640 | 319 # GRUB stuff. |
pankso@1154 | 320 if [ -f "$1/boot/grub/menu.lst" ]; then |
pankso@4056 | 321 root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1` |
pankso@4056 | 322 grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1` |
pankso@3864 | 323 # Add new kernel entry in case of upgrade for installed system. |
pankso@12291 | 324 if ! grep -q vmlinuz-$VERSION-slitaz $1/boot/grub/menu.lst; then |
pankso@4056 | 325 cat >> $1/boot/grub/menu.lst << EOT |
pankso@4056 | 326 |
pankso@4056 | 327 title SliTaz GNU/Linux (Kernel $VERSION-slitaz) |
pankso@4056 | 328 $grub_dev |
pankso@4056 | 329 kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev |
pankso@4056 | 330 EOT |
pankso@4056 | 331 fi |
pankso@4056 | 332 # Display information message. |
pankso@4056 | 333 cat <<EOT |
pankso@4056 | 334 ---- |
pankso@4056 | 335 GRUB is installed, these tree lines must be in your /boot/grub/menu.lst: |
pankso@1154 | 336 |
pankso@1154 | 337 title SliTaz GNU/Linux (Kernel $VERSION-slitaz) |
pankso@1154 | 338 $grub_dev |
pankso@4056 | 339 kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev |
pascal@886 | 340 ---- |
pascal@886 | 341 EOT |
pankso@1154 | 342 fi |
pankso@3 | 343 } |