Tiny Core Linux

Tiny Core Base => TCB Bugs => Topic started by: jls on November 20, 2009, 09:50:39 AM

Title: restore boot option doesn't work if backup resides in tce dir
Post by: jls on November 20, 2009, 09:50:39 AM
If mydata.tgz is in the tce dir but I want my backup to be restored from another place, I write restore=sda1 (4 example) in the append line in grub, but still the backup is restored from the one in the tce dir
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: roberts on November 20, 2009, 11:27:46 AM
Yikes! Having multiple copies of such a critical file is scary.
But, OK. I will accomodate.
Be careful.
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: Kingdomcome on November 20, 2009, 11:29:12 AM
I like the fact that most boot options will override what is found by auto-detections.  This will be a good feature.  :o
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: roberts on November 20, 2009, 11:40:19 AM
Historically, the restore option intended use was solely to prevent auto detection.

Later the default location of the tce came in use and thus it too prevents auto detection.

Currenly tce dir trumps the verb restore for the purpose of keeping things simple (KISS).

However restore can trump, with the caveat, that user error does not halt the boot process. Thereby the chance to overwrite the wrong multiple copy of backup is possible, of which I was trying to prevent.
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: roberts on November 21, 2009, 03:23:09 PM
Done. Will be in v2.6 starting with rc3.
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: bigpcman on November 22, 2009, 11:14:15 AM
Historically, the restore option intended use was solely to prevent auto detection.

Later the default location of the tce came in use and thus it too prevents auto detection.

Currenly tce dir trumps the verb restore for the purpose of keeping things simple (KISS).

However restore can trump, with the caveat, that user error does not halt the boot process. Thereby the chance to overwrite the wrong multiple copy of backup is possible, of which I was trying to prevent.

Robert now that 2.6rc4 has changed the backup restore precedence are there failure conditions or any other "special" circumstances that will result in backup restore not occurring as expected?
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: roberts on November 22, 2009, 12:50:50 PM
Back in the days, when data processing was a widely used term, there was this axiom.

If a file exists with the same name in two different places, then in inevitably the wrong one will be updated.

So that is my reason for caution.
Title: Re: restore boot option doesn't work if backup resides in tce dir
Post by: jpeters on November 22, 2009, 05:24:10 PM
Back in the days, when data processing was a widely used term, there was this axiom.

If a file exists with the same name in two different places, then in inevitably the wrong one will be updated.

So that is my reason for caution.

OTOH, I could see a way where this could add safety, by allowing a user to experiment without worrying about accidentally  overwriting his/her basic setup (...done it more than once   :). Bootcodes offer a great way to simply script in multiple setups;   probably nothing general users would mess with anyway.