Re: [gentoo-user] /boot/grub and grub2 directories

2021-12-04 Thread Dale
Wols Lists wrote:
> On 04/12/2021 15:53, Dale wrote:
>> While I'm at it.  When the grub package upgrades, should I reinstall
>> with grub-install to update what is on the drive or is it safe to just
>> leave it as is?  I seem to recall a upgrade to grub a while back.  It
>> just dawned on me that while the package is updated, what is installed
>> on the hard drive boot part with grub-install is still the original from
>> ages ago when I first built this rig.  Thoughts??
>
> I don't think I've ever updated what's in the mbr. It doesn't really
> matter in that it just hands over to the real linux and root. I think
> it would be rather hard to compromise, and anyway if anything has got
> so far as to tamper with your boot, I think the game is over anyway.
>
> Most changes of any consequence will be to the user-space code anyway,
> not the actual boot stuff.
>
> Cheers,
> Wol
>
>


That info is very helpful.  I sort of figured that if there was a major
change, we would see some sort of message about needing to reinstall
before rebooting. 

Thanks much.

Dale

:-)  :-) 



Re: [gentoo-user] /boot/grub and grub2 directories

2021-12-04 Thread Wols Lists

On 04/12/2021 15:53, Dale wrote:

While I'm at it.  When the grub package upgrades, should I reinstall
with grub-install to update what is on the drive or is it safe to just
leave it as is?  I seem to recall a upgrade to grub a while back.  It
just dawned on me that while the package is updated, what is installed
on the hard drive boot part with grub-install is still the original from
ages ago when I first built this rig.  Thoughts??


I don't think I've ever updated what's in the mbr. It doesn't really 
matter in that it just hands over to the real linux and root. I think it 
would be rather hard to compromise, and anyway if anything has got so 
far as to tamper with your boot, I think the game is over anyway.


Most changes of any consequence will be to the user-space code anyway, 
not the actual boot stuff.


Cheers,
Wol



Re: [gentoo-user] /boot/grub and grub2 directories

2021-12-04 Thread Dale
Neil Bothwick wrote:
> On Fri, 3 Dec 2021 23:26:29 -0600, Dale wrote:
>
>> I was cleaning out my /boot directory.  It's on its own partition and I
>> remove outdated kernels and configs etc every once in a while. I was
>> noticing that I have two grub directories.  Based on time stamps, I
>> think I can delete the plain grub directory and I'm pretty much certain
>> grub2 is the current and active grub directory.  Is it safe to remove
>> the old grub directory?  Nothing in it has been touched that the time
>> stamps show in a long while.  The grub2 directory was when I did my last
>> kernel update. 
>>
>> I just want to be certain before I remove the directory.  More info
>> below.
> Yes, but to be on the safe side, rename it rather than removing it. GRUB
> will look in either /boot/grub or /boot/grub2, from your setup it looks
> like it goes for grub2 first.
>
>


That's a good idea.  I used equery f grub to see what grub installed
where but it showed nothing at all for /boot.  I figure grub-install
puts all the needed files in /boot but I wasn't sure how to get it to
list where it put them.  The file isn't a script so I can't just peek
into the file and see what it does. 

While I'm at it.  When the grub package upgrades, should I reinstall
with grub-install to update what is on the drive or is it safe to just
leave it as is?  I seem to recall a upgrade to grub a while back.  It
just dawned on me that while the package is updated, what is installed
on the hard drive boot part with grub-install is still the original from
ages ago when I first built this rig.  Thoughts??

Dale

:-)  :-) 



Re: [gentoo-user] /boot/grub and grub2 directories

2021-12-03 Thread Neil Bothwick
On Fri, 3 Dec 2021 23:26:29 -0600, Dale wrote:

> I was cleaning out my /boot directory.  It's on its own partition and I
> remove outdated kernels and configs etc every once in a while. I was
> noticing that I have two grub directories.  Based on time stamps, I
> think I can delete the plain grub directory and I'm pretty much certain
> grub2 is the current and active grub directory.  Is it safe to remove
> the old grub directory?  Nothing in it has been touched that the time
> stamps show in a long while.  The grub2 directory was when I did my last
> kernel update. 
> 
> I just want to be certain before I remove the directory.  More info
> below.

Yes, but to be on the safe side, rename it rather than removing it. GRUB
will look in either /boot/grub or /boot/grub2, from your setup it looks
like it goes for grub2 first.


-- 
Neil Bothwick

All right, set phasers to deep fat fry!


pgpE1SQqce54D.pgp
Description: OpenPGP digital signature


[gentoo-user] /boot/grub and grub2 directories

2021-12-03 Thread Dale
Howdy,

I was cleaning out my /boot directory.  It's on its own partition and I
remove outdated kernels and configs etc every once in a while. I was
noticing that I have two grub directories.  Based on time stamps, I
think I can delete the plain grub directory and I'm pretty much certain
grub2 is the current and active grub directory.  Is it safe to remove
the old grub directory?  Nothing in it has been touched that the time
stamps show in a long while.  The grub2 directory was when I did my last
kernel update. 

I just want to be certain before I remove the directory.  More info below.


ls -al /boot/
drwxr-xr-x  6 root root    17408 Jun 18  2019 grub
drwxr-xr-x  6 root root 1024 Nov 30 10:55 grub2


By the way, I had the old grub installed on here ages ago.  Can't recall
when I switched to the new, much larger, grub2. 

Thanks.

Dale

:-)  :-)