Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with grub legacy on 17.0 profile [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
brendlefly62
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2009
Posts: 86

PostPosted: Thu Dec 07, 2017 5:12 pm    Post subject: Problems with grub legacy on 17.0 profile [Solved] Reply with quote

On a Dell Inspiron laptop, I completed the upgrade process in 17.0 migration news article, except that a couple packages would not compile during emerge -e @world. One of these was legacy grub:0

sys-boot/grub-0.97-r16 -- compile fails with error: unrecognized command line option '-nopie'; did you mean '-no-pie'?

I tried keywording "sys-boot/grub ~amd64" and sys-boot/grub-0.97-r17 compiles successfully, but grub-install fails with error message: The file /boot/grub/stage1 not read correctly.

I have avoided migration to grub2 mainly because I don't like the way its mkconfig only seems to work smoothly if you have no initramfs or if you use genkernel (chokes on cusom kernel/initrd names). I did try to switch to it today, but it did not seem to like my layout:
Code:
# fdisk /dev/sdb
...
Command (m for help): p
Disk /dev/sdb: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: ...

Device       Start      End  Sectors  Size Type
/dev/sdb1     2048   264191   262144  128M EFI System
/dev/sdb2   264192  2361343  2097152    1G Linux filesystem
/dev/sdb3  2361344 62533262 60171919 28.7G Linux LVM


where /dev/sdb2 is an ext2 partition mounted at /boot by UUID

Am I missing something simple? (will grub:0 work on 17.0?)

thanks


Last edited by brendlefly62 on Thu Dec 07, 2017 9:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
Irre
Apprentice
Apprentice


Joined: 09 Nov 2013
Posts: 271
Location: Stockholm

PostPosted: Thu Dec 07, 2017 7:16 pm    Post subject: Reply with quote

I have the same compiler error. But previous installed version and LILO work fine so far.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 39279
Location: 56N 3W

PostPosted: Thu Dec 07, 2017 7:42 pm    Post subject: Reply with quote

brendlefly62,

You could just not update your boot loader. If it works now, it will continue to work, regardless of the profile.
What could be simpler that do nothing :)

There are at least two other posts on this topic. I think one of them reached a successful conclusion.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
brendlefly62
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2009
Posts: 86

PostPosted: Thu Dec 07, 2017 8:43 pm    Post subject: Reply with quote

Thanks, Neddy. Too late for "do nothing" option; already passed that fork in the road. haha :oops: A failed grub-install seems to have corrupted the previously installed stage1 or something. I had to go back to booting from livedvd(USB) and chroot...

I did manage to get it all working again. Not sure this is the most elegant way, but since sys-boot/grub-0.97-r16 fails to compile, I went to sys-boot/grub-0.97-r17. To get the latter to compile, I had to set USE=static and because grub:0 defaults to USE=ncurses, I added USE=static-libs for ncurses. (I suppose I could have tried grub:0 with -ncurses, but I didn't)

As an aside, the situation was complicated by the fact that my boot and root partitions are on a 32G SSD with the root partition encrypted, and the rest of the system is on a 500G hdd, which is also encrypted. Somehow, probably while clobbering the old grub stage1, I had also clobbered the luks header for the 500G hdd :roll: . Fortunately, I had backed that up, so I was able to restore it, and everything is hunky dory again. :D


Thanks again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum