From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1P0jDb-0007gZ-8n for mharc-grub-devel@gnu.org; Tue, 28 Sep 2010 19:04:15 -0400 Received: from [140.186.70.92] (port=44485 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0jDX-0007g7-8l for grub-devel@gnu.org; Tue, 28 Sep 2010 19:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0jDW-0005DR-16 for grub-devel@gnu.org; Tue, 28 Sep 2010 19:04:11 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:60769) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0jDV-0005DL-N8 for grub-devel@gnu.org; Tue, 28 Sep 2010 19:04:09 -0400 Received: by bwz10 with SMTP id 10so216526bwz.0 for ; Tue, 28 Sep 2010 16:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=cAk44Iga2nWNI96TFk5bA8sTLkdUkPFpLECCtvQaDbs=; b=QOiyhxU1XT+V5fYyHwZJIynpJAAIrJchRC0OxNiOY+fuVl06zNEtfciOdGzmC4yols 3df7MSKesXxImsd4oNhsjbkXrrnvzcuvLIh8lp/nd6gw3sunMa91JAQQzRZ/Q3Ki94nn MS5jQCzMvwjnXFvcmJMJ6t08k2NY3Al/sXKXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=fMc1v36XxA5SFuG1Mc38N5a2n+34xWOJIfZhyjCYmTKj+CYJSHjp4d7qZChErLQMCq D/HN2UkWUFNayQNsO4pdo7c3TIwn5petcpi8ZDYbtHPIvr1yEWP35/eqhIbJyjywHukL HTjn+fl6L6eMfE7a3otUeqqmItuCiB7zuzz6Q= Received: by 10.204.68.144 with SMTP id v16mr628751bki.58.1285715048668; Tue, 28 Sep 2010 16:04:08 -0700 (PDT) Received: from debian.bg45.phnet (gprs49.swisscom-mobile.ch [193.247.250.49]) by mx.google.com with ESMTPS id d27sm6090931bku.10.2010.09.28.16.04.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Sep 2010 16:04:07 -0700 (PDT) Message-ID: <4CA2745A.2030204@gmail.com> Date: Wed, 29 Sep 2010 01:03:54 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 MIME-Version: 1.0 To: grub-devel@gnu.org References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig11A435ACC78A427B07E93C67" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Several ideas about grub2. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 23:04:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig11A435ACC78A427B07E93C67 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/29/2010 12:42 AM, Dmitry Ilyin wrote: > 1. Implementation of some progress bar for file reading > > Loading files from slow flash or network can sometimes take up to sever= al minutes (Linux initramfs could=20 > be about 100Mb). And i'm thinking about some progress meter for file lo= ading. It could be print dot per=20 > megabyte, percent or 34/76Mb style or like this |#######------------|. > Looks like it should be build into grub_disk_read procedue in kern/disk= =2Ec or grub_file_read in kern/file.c > Maybe you could give me some hints about best way to do this. > > =20 It's on TODO list. Exact code implementation isn't clear but keep in mind that a) (not very relevant but) some blocks may be reread multiple times b) multiple files may be loaded in a row and progress of file X may be irrelevant c) It's ok to have it only when special function for reading is called d) Don't update it too often, drawing takes time. e) The part in core must be as small as possible. In fact the current blocklist hook should be enough but it should be extended with special values like GRUB_BLOCK_UNKNOWN or flag GRUB_BLOCK_NEVER_WRITE to mean that FS is checksummed and saveenv should abort, and all curent users must handle it (especially important for ZFS). > 2. Basic text editor > > Is it possible to make basic text editor as grub2 module. I'm looking a= t "ed"=20 > http://www.gnu.org/fun/jokes/ed.msg.html It will be very usefull to edi= t text files (grub.cfg for example)=20 > without booting os. Or there is no write support in filesystem drivers?= Maybe hex editor? > > =20 It's OK to have an editor but it's not ok to save the resulting file. Only save_env ever writes to filesystem since anything more than environment (which requires a file reserved in advance and we just overwrite its sector after checking that sector is indeed correct). For any file editing it's better to boot into an OS, e.g. you can have Linux+busybox-based initramfs for this purpose. > 3. Installing on loop devices > > grub-install fails to work on loop devices. Partition detection doesn't= work on loop devices, but you can=20 > use kpartx. For example we have /dev/loop0, using fdisk we create 2 par= titions on this image, kpartx -a=20 > /dev/loop0 will map partitions to /dev/mapper/loop0p1 and /dev/mapper/l= oop0p2 which you can format and=20 > mount, but grub-install will fail (there is no bios drives for them?). > No kernel partition detecion for loop devices is serious problem. Why k= ernel cannot create /dev/loop0p1=20 > and /dev/loop0p2 like with real hdds? FreeBSD's md's doesn't have this = problem and work like normal disks=20 > with partitions. But this is not related to grub. > What is the best way to fix installing on loop devices? Fixing grub-pro= be or grub-install to not using=20 > grub-probe when it cannot work and hardcode (hd0) prefix for loop devic= es? > =20 grub-probe must be fixed to handle loop device partitions. > Using grub-mkimage and grub-setup manually works. > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig11A435ACC78A427B07E93C67 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkyidFoACgkQNak7dOguQglz/gD/RJysAEDOuLzBQ3Kdl4/81mMQ rlXkHDBTVDXPjKrbqFQBAIiqH6AX0Ui0IIVShvMSkiBoUPALDfJGaeISLeSqbEtJ =7lMD -----END PGP SIGNATURE----- --------------enig11A435ACC78A427B07E93C67--