2 Feature: Installing Tails to a USB drive
4 I want to install Tails to a suitable USB drive
7 Scenario: Try installing Tails to a too small USB drive with GPT and a FAT partition
8 Given I have started Tails from DVD without network and logged in
9 And I temporarily create a 4 GiB disk named "gptfat"
10 And I create a gpt partition with a vfat filesystem on disk "gptfat"
11 And I plug USB drive "gptfat"
12 When I start Tails Installer
13 Then I am told by Tails Installer that the destination device "is too small"
15 Scenario: Detecting when a target USB drive is inserted or removed
16 Given I have started Tails from DVD without network and logged in
17 And I temporarily create a 7200 MiB disk named "temp"
18 And I start Tails Installer
19 But a suitable USB device is not found
20 When I plug USB drive "temp"
21 Then the "temp" USB drive is selected
22 When I unplug USB drive "temp"
23 Then a suitable USB device is not found
25 Scenario: Installing Tails with Tails Installer to a used USB drive
26 Given I have started Tails from DVD without network and logged in
27 And I temporarily create a 7200 MiB disk named "install"
28 And I create a gpt partition with a vfat filesystem on disk "install"
29 And I plug USB drive "install"
30 And I install Tails to USB drive "install" by cloning
31 Then the running Tails is installed on USB drive "install"
32 But there is no persistence partition on USB drive "install"
34 Scenario: Installing Tails with Tails Installer to a pristine USB drive
35 Given I have started Tails from DVD without network and logged in
36 And I temporarily create a 7200 MiB disk named "install"
37 And I plug USB drive "install"
38 And I install Tails to USB drive "install" by cloning
39 Then the running Tails is installed on USB drive "install"
40 But there is no persistence partition on USB drive "install"
42 Scenario: Installing Tails with Tails Installer to a used USB drive, cloning the Persistent Storage
43 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
44 And I create a file in the Persistent directory
45 And I temporarily create a 7200 MiB disk named "install"
46 And I create a gpt partition with a vfat filesystem on disk "install"
47 And I plug USB drive "install"
48 And I install Tails with Persistent Storage to USB drive "install" by cloning
49 Then the running Tails is installed on USB drive "install"
50 And there is a persistence partition on USB drive "install"
51 And the USB drive "install" contains the same files as my persistent storage
53 Scenario: Installing Tails with Tails Installer to a pristine USB drive, without cloning the Persistent Storage
54 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
55 And I temporarily create a 7200 MiB disk named "install"
56 And I plug USB drive "install"
57 And I install Tails to USB drive "install" by cloning
58 Then the running Tails is installed on USB drive "install"
59 And there is no persistence partition on USB drive "install"
61 Scenario: Re-installing Tails over an existing USB installation with a persistent partition
62 # We reach this first checkpoint only to ensure that the ' __internal' disk has reached the state (Tails installed + persistent partition set up) we need before we clone it below.
63 # This first part is done without Tails Installer (install from Tails USB image)
64 # Note: the "__internal" disk will keep its state across scenarios
65 # and features until one of its snapshots is restored.
66 Given I have started Tails without network from a USB drive with a persistent partition enabled and logged in
67 And I have started Tails from DVD without network and logged in
68 And I clone USB drive "__internal" to a temporary USB drive "install"
69 And I plug USB drive "install"
70 # This second part is done with Tails Installer, that's what this scenario is about
71 When I reinstall Tails to USB drive "install" by cloning
72 Then the running Tails is installed on USB drive "install"
73 And there is no persistence partition on USB drive "install"
76 Scenario: Booting Tails from a USB drive in UEFI mode
77 Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
78 And I power off the computer
79 And the computer is set to boot in UEFI mode
80 When I start Tails from USB drive "__internal" with network unplugged and I login
81 Then Tails is running from USB drive "__internal"
82 And the boot device has safe access rights
83 And Tails has started in UEFI mode
85 Scenario: Installing Tails with GNOME Disks from a USB image
86 Given I have started Tails from DVD without network and logged in
87 And I plug and mount a USB drive containing a Tails USB image
88 And I create a 7200 MiB disk named "usbimage"
89 And I plug USB drive "usbimage"
90 And I install a Tails USB image to the 7200 MiB disk with GNOME Disks
92 # Depends on scenario: Installing Tails with GNOME Disks from a USB image
93 Scenario: The system partition is updated when booting from a USB drive where a Tails USB image was copied
95 And I start Tails from USB drive "usbimage" with network unplugged and I login
96 Then Tails is running from USB drive "usbimage"
97 And the label of the system partition on "usbimage" is "Tails"
98 And the system partition on "usbimage" is an EFI system partition
99 And the FAT filesystem on the system partition on "usbimage" is at least 4000M large
100 And the UUID of the FAT filesystem on the system partition on "usbimage" was randomized
101 And the label of the FAT filesystem on the system partition on "usbimage" is "TAILS"
102 And the system partition on "usbimage" has the expected flags