Make fstrim step optional instead of recommended and explain why

This commit is contained in:
Andrew David Wong 2019-09-02 12:37:17 -05:00
parent d46ebfb4cd
commit e63030c32a
No known key found for this signature in database
GPG Key ID: 8CE137352A019A17
2 changed files with 10 additions and 10 deletions

View File

@ -29,10 +29,6 @@ In general, upgrading a Debian TemplateVM follows the same process as [upgrading
[user@debian-<new> ~]$ sudo apt update [user@debian-<new> ~]$ sudo apt update
[user@debian-<new> ~]$ sudo apt upgrade [user@debian-<new> ~]$ sudo apt upgrade
[user@debian-<new> ~]$ sudo apt dist-upgrade [user@debian-<new> ~]$ sudo apt dist-upgrade
[user@debian-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown debian-<new>
[user@dom0 ~]$ qvm-start debian-<new>
[user@debian-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown debian-<new> [user@dom0 ~]$ qvm-shutdown debian-<new>
**Recommended:** [Switch everything that was set to the old template to the new template.][switch] **Recommended:** [Switch everything that was set to the old template to the new template.][switch]
@ -76,7 +72,9 @@ The same general procedure may be used to upgrade any template based on the stan
[user@debian-<new> ~]$ sudo apt-get clean [user@debian-<new> ~]$ sudo apt-get clean
7. (Recommended) Trim the new template. 7. (Optional) Trim the new template.
(This should [no longer be necessary][template-notes], but it does not hurt.
Some users have [reported][5055] that it makes a difference.)
[user@debian-<new> ~]$ sudo fstrim -av [user@debian-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown debian-<new> [user@dom0 ~]$ qvm-shutdown debian-<new>
@ -161,4 +159,6 @@ We strongly recommend against using any Debian release that has reached [end-of-
[buster]: https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html [buster]: https://www.debian.org/releases/buster/amd64/release-notes/ch-upgrading.en.html
[end-of-life (EOL)]: https://wiki.debian.org/DebianReleases#Production_Releases [end-of-life (EOL)]: https://wiki.debian.org/DebianReleases#Production_Releases
[StandaloneVM]: /doc/standalone-and-hvm/ [StandaloneVM]: /doc/standalone-and-hvm/
[template-notes]: /doc/templates/#important-notes
[5055]: https://github.com/QubesOS/qubes-issues/issues/5055

View File

@ -40,10 +40,6 @@ If you wish to install a new, unmodified Fedora TemplateVM instead of upgrading
[user@fedora-<new> ~]$ sudo mount /dev/xvdi /mnt/removable [user@fedora-<new> ~]$ sudo mount /dev/xvdi /mnt/removable
[user@fedora-<new> ~]$ sudo dnf clean all [user@fedora-<new> ~]$ sudo dnf clean all
[user@fedora-<new> ~]$ sudo dnf --releasever=<new> --setopt=cachedir=/mnt/removable --best --allowerasing distro-sync [user@fedora-<new> ~]$ sudo dnf --releasever=<new> --setopt=cachedir=/mnt/removable --best --allowerasing distro-sync
[user@fedora-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown fedora-<new>
[user@dom0 ~]$ qvm-start fedora-<new>
[user@fedora-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown fedora-<new> [user@dom0 ~]$ qvm-shutdown fedora-<new>
[user@dom0 ~]$ sudo losetup -d $dev [user@dom0 ~]$ sudo losetup -d $dev
[user@dom0 ~]$ rm /var/tmp/template-upgrade-cache.img [user@dom0 ~]$ rm /var/tmp/template-upgrade-cache.img
@ -115,7 +111,9 @@ The same general procedure may be used to upgrade any template based on the stan
[user@fedora-<new> ~]$ cat /etc/fedora-release [user@fedora-<new> ~]$ cat /etc/fedora-release
5. (Recommended) Trim the new template. 5. (Optional) Trim the new template.
(This should [no longer be necessary][template-notes], but it does not hurt.
Some users have [reported][5055] that it makes a difference.)
[user@fedora-<new> ~]$ sudo fstrim -av [user@fedora-<new> ~]$ sudo fstrim -av
[user@dom0 ~]$ qvm-shutdown fedora-<new> [user@dom0 ~]$ qvm-shutdown fedora-<new>
@ -210,4 +208,6 @@ In this case, you have several options:
[DispVM]: /doc/dispvm/ [DispVM]: /doc/dispvm/
[end-of-life (EOL)]: https://fedoraproject.org/wiki/End_of_life [end-of-life (EOL)]: https://fedoraproject.org/wiki/End_of_life
[StandaloneVM]: /doc/standalone-and-hvm/ [StandaloneVM]: /doc/standalone-and-hvm/
[template-notes]: /doc/templates/#important-notes
[5055]: https://github.com/QubesOS/qubes-issues/issues/5055