Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-02 Thread Chris Adams
Once upon a time, Frank Cox said: > On Tue, 2 Feb 2016 10:18:09 + (UTC) > Tony Mountifield wrote: > > killing the UEFI stuff stops you ever being able to do a re-install on > > that box. Is that correct? > > Apparently so. Just to clarify: this appears to be a

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-02 Thread Tony Mountifield
> Sent: den 1 februari 2016 20:34 > > To: CentOS > > Subject: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System > > > > As a public service announcement, recursively removing all of your files > > from / is no longer recommended. > > I'm not f

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-02 Thread Frank Cox
On Tue, 2 Feb 2016 10:18:09 + (UTC) Tony Mountifield wrote: > killing the UEFI stuff stops you ever being able to do a re-install on that > box. Is that correct? Apparently so. > Is there no way to do a factory reset of the BIOS? Apparently not. -- MELVILLE THEATRE ~ Real D 3D Digital

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Valeri Galtsev
On Mon, February 1, 2016 1:33 pm, m.r...@5-cent.us wrote: > Excerpt: > Running rm -rf / on any UEFI Linux distribution can potentially > perma-brick your system. Yes, I kind of like "rm -rf /". If my memory doesn't fail me, long ago it was one of the tricky questions in sysadmin exam (not that

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Frank Cox
On Mon, 1 Feb 2016 13:44:48 -0600 Chris Adams wrote: > Did someone think running "rm -rf /" is a good idea? Quote from one of the people who commented on that article: QUOTE: You have this in a script: rm -rf "${DIRECTORY}"/ Now, you have a bug in the script and ${DIRECTORY} is not

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Richard Zimmerman
>> Excerpt: >> Running rm -rf / on any UEFI Linux distribution can potentially perma-brick >> your system. > > "And they closed the ticket"? That tuxedo on the cockroach is so elegent! > Ok, *now* tell me why we shouldn't hate systemd? > mark As much as I don't like systemd, it has NOTHING

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Gordon Messmer
On 02/01/2016 11:54 AM, Frank Cox wrote: You have this in a script: rm -rf "${DIRECTORY}"/ Now, you have a bug in the script and ${DIRECTORY} is not initialized. On GNU systems, rm should not remove '/' recursively unless --no-preserve-root is specified.

[CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread m . roth
Excerpt: Running rm -rf / on any UEFI Linux distribution can potentially perma-brick your system. As a public service announcement, recursively removing all of your files from / is no longer recommended. On UEFI distributions by default where EFI variables are accessible via /sys, this can now

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Chris Adams
Once upon a time, m.r...@5-cent.us said: > Excerpt: > Running rm -rf / on any UEFI Linux distribution can potentially > perma-brick your system. Did someone think running "rm -rf /" is a good idea? > Ok, *now* tell me why we shouldn't hate systemd? This has zero to do with

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Valeri Galtsev
On Mon, February 1, 2016 4:23 pm, Gordon Messmer wrote: > On 02/01/2016 01:48 PM, Valeri Galtsev wrote: >> I just discovered that I couldn't even re-cite alphabet correctly today: >> it is /bin that you loose, but /etc alphabetically goes after /dev, so >> will not even loose your /etc, > > I'm

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread John R Pierce
wait. would deleting the inode /sys/(whatever) actually modify UEFI memory?sure, writing to those inodes could do all sorts of harm, but deleting the inodes in the /sys filesystem, I'm not so sure this isn't a tempest in a teapot so to speak. -- john r pierce, recycling bits in

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Gordon Messmer
On 02/01/2016 01:48 PM, Valeri Galtsev wrote: I just discovered that I couldn't even re-cite alphabet correctly today: it is /bin that you loose, but /etc alphabetically goes after /dev, so will not even loose your /etc, I'm pretty sure none of that is correct. Once "rm" launches, all of the

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Gordon Messmer
On 02/01/2016 01:59 PM, John R Pierce wrote: would deleting the inode /sys/(whatever) actually modify UEFI memory? Yes. That is how the UEFI management interface works. ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Chris Adams
Once upon a time, Valeri Galtsev said: > All true, except for: to actually write stuff permanently to hard drive > (that is modify whatever the content of hard drive is) the system needs to > access /dev/sda1 (I call from now /dev/sda1 device which "/" filesystem >

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Valeri Galtsev
On Mon, February 1, 2016 4:24 pm, Gordon Messmer wrote: > On 02/01/2016 01:59 PM, John R Pierce wrote: >> would deleting the inode /sys/(whatever) actually modify UEFI memory? > > Yes. That is how the UEFI management interface works. Will doing rm -rf / actually delete anything in /sys? IMHO,

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread John R Pierce
On 2/1/2016 2:07 PM, m.r...@5-cent.us wrote: John R Pierce wrote: >wait. would deleting the inode/sys/(whatever) actually modify UEFI >memory?sure, writing to those inodes could do all sorts of harm, but >deleting the inodes in the /sys filesystem, I'm not so sure this isn't a >tempest

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread m . roth
John R Pierce wrote: > On 2/1/2016 2:07 PM, m.r...@5-cent.us wrote: >> John R Pierce wrote: >>> >wait. would deleting the inode/sys/(whatever) actually modify UEFI >>> >memory?sure, writing to those inodes could do all sorts of harm, >>> but deleting the inodes in the /sys filesystem, I'm

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Gordon Messmer
On 02/01/2016 02:46 PM, Valeri Galtsev wrote: Will doing rm -rf / actually delete anything in /sys? IMHO, not. Yes, it will. Probably. It's possible that it'll hang on some of the files in /proc if it gets to that directory before /sys, but that's largely a matter of chance. The

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread m . roth
John R Pierce wrote: > wait. would deleting the inode /sys/(whatever) actually modify UEFI > memory?sure, writing to those inodes could do all sorts of harm, but > deleting the inodes in the /sys filesystem, I'm not so sure this isn't a > tempest in a teapot so to speak. It's going to get

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Alice Wonder
On 02/01/2016 11:54 AM, Frank Cox wrote: On Mon, 1 Feb 2016 13:44:48 -0600 Chris Adams wrote: Did someone think running "rm -rf /" is a good idea? Quote from one of the people who commented on that article: QUOTE: You have this in a script: rm -rf "${DIRECTORY}"/ Now, you have a bug in

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Valeri Galtsev
On Mon, February 1, 2016 1:56 pm, Valeri Galtsev wrote: > > On Mon, February 1, 2016 1:33 pm, m.r...@5-cent.us wrote: >> Excerpt: >> Running rm -rf / on any UEFI Linux distribution can potentially >> perma-brick your system. > > Yes, I kind of like "rm -rf /". If my memory doesn't fail me, long

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Gordon Messmer
On 02/01/2016 02:07 PM, m.r...@5-cent.us wrote: It's going to get /boot. And under there, it'll get /boot/EFI. Yes, but that's not the problem. /sys/firmware/efi/efivars is. ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System

2016-02-01 Thread Sorin Srbu
> -Original Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On > Behalf Of m.r...@5-cent.us > Sent: den 1 februari 2016 20:34 > To: CentOS > Subject: [CentOS] In A UEFI World, "rm -rf /" Can Brick Your System > > As a public