Re: dnf upgrade to Fedora 35 using --downloaddir just wiped out my entire home dir !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2021-11-18 at 10:05 -0700, linux guy wrote:
> > > Except that this is a very different case.  You're not telling
> > > dnf where
> > > it can create its own directory.  You are saying "this is your
> > > directory, use it".
> > 
> 
> Yes, use it.  But don't destroy data in it that the app didn't create
> !  rm
> -rf ?  Really ? That is a lot strong handed.
> 
> Yes, you have a point. It's a much better argument, than "it could,
> > because it did". I still think the prudent (and simple) thing is to
> > create a subdirectory and wipe that. Or at least put a scary
> > warning
> > in the documentation.
> > 
> 
> Why didn't dnf create its own sub dir within the given directory and
> then
> just wipe that ?  Absolutely no chance of destroying user data if you
> do
> that.

IMHO the proper policy would be to ask the user before proceeding,
e.g.:

   This will remove all existing content in <directory>. Continue? [N, y]

Dnf already asks for confirmation for some other actions, so I don't
see the problem with this.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux