Author: intrigeri Date: To: tails-dev, Una Posició Subject: Re: [Tails-dev] tails persistence setup from command line
Hi,
[fully quoting for the benefit of the list.]
Una Posició wrote (23 May 2015 16:19:13 GMT) : > I'm trying to develope an application to group install in Tails, you may
> remember a mail about it some weeks ago. I keep on it and have some questions
> to resolve as I posted in the list. One of them is persistence setup specific
> and I thought it may be easier for all if I ask you directly as mantainer. If
> isn't, sorry and please answer to the list.
Yes, I prefer such discussions to happen on the list.
> The part of aplication related to persistence setup should configure
> persistence without user intervention when possible with following actions: > 1- Ask for usb device and press Go
> 2- Clone Tails,
> 3- Create persistence partition
> 4- Mount,
> 5- Setup persistence
> 6- Copy profiles and docs.
> 7- Exit and ask for next device > Don't know if it's possible but by now I'm trying to achieve this steps by
> command line. Reading documentation, man and --help step 3 shoud be possible
> but I tried with following command just after cloning with Tails Installer: > tails-persistence-setup --force --override-boot-device
> /org/freedesktop/UDisks/devices/sdc --override-system-partition
> /org/freedesktop/UDisks/devices/sdc1 --passphrase [Passphrase] --step bootsrap > And it results on: > - Launches Setup > - Asks for Passphrase ignoring passphrase passed in command > - Fails with warning: "Failed org.freedesktop.UDisks.Error.PermissionDenied:
> Not Authorized" > Questions are: > 1. Besides this needs user intervention, why isn't working?
Probably because you're running that command as the amnesia user.
See config/chroot_local-patches/run_t-p-s_as_its_dedicated_user.diff
in the Tails source tree.