[qubes-users] cannot get locally built xen packages to install in dom0

2022-04-13 Thread Jake

hi list,

i made some modifications to the vmm-xen component of qubes and am 
having difficulty testing the built packages.


i have copied the packages to dom0, but attempts to dnf update with the 
newly built packages, e.g. xen-libs give the error


"problem: the operation would result in removing the following protected 
packages: qubes-core-dom0"


i would appreciate it if someone can tell me how to go about updating 
these packages so i can test them.


regards,

jake

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/d96ea9fe-f746-0594-39a2-1aec3de29427%40companyzero.com.


Re: [qubes-users] Where to configure target dir of `qvm-move`/`qvm-copy` (`/home/user/QubesIncomming`)?

2022-04-13 Thread 'Johannes Graumann' via qubes-users
On Tue, 2022-04-12 at 15:10 +0200, Johannes Graumann wrote:
> On Fri, 2022-04-08 at 04:45 +0200, airelemental via qubes-users
> wrote:
> > 
> > 
> > > See subject line - I'd like to remap the `/home/user` bit to
> > > `/tmp`
> > > to
> > > enforce cleanup ...
> > > 
> > > Thanks for any pointers.
> > > 
> > > Joh
> > > 
> > In /rw/config/rc.local, you can create /tmp/QubesIncoming. Then
> > replace ~/QubesIncoming with a symlink to /tmp/QubesIncoming
> > 
> 
> Good strategy, I'll try that. Thank you.

This *.sls works nicely:

```
configure `rc.local` to remove any present `QubesIncoming`:
  file.replace:
- name: /rw/config/rc.local
- pattern: '^rm -rf /home/user/QubesIncoming$'
- repl: 'rm -rf /home/user/QubesIncoming'
- append_if_not_found: True 

configure `rc.local` to create `/tmp/QubesIncoming`:
  file.replace:
- name: /rw/config/rc.local
- pattern: '^install -d -o user -g user -m 770 /tmp/QubesIncoming$'
- repl: 'install -d -o user -g user -m 770 /tmp/QubesIncoming'
- append_if_not_found: True 

configure `rc.local` to link `/tmp/QubesIncoming` to $HOME:
  file.replace:
- name: /rw/config/rc.local
- pattern: '^ln -s /tmp/QubesIncoming /home/user/QubesIncoming$'
- repl: 'ln -s /tmp/QubesIncoming /home/user/QubesIncoming'
- append_if_not_found: True 

configure `rc.local` to properly chown the link:
  file.replace:
- name: /rw/config/rc.local
- pattern: '^chown -h user:user /home/user/QubesIncoming$'
- repl: 'chown -h user:user /home/user/QubesIncoming'
- append_if_not_found: True 
```

It generates this code block in `/rw/config/rc.local`:

```
rm -rf /home/user/QubesIncoming
install -d -o user -g user -m 770 /tmp/QubesIncoming
ln -s /tmp/QubesIncoming /home/user/QubesIncoming
chown -h user:user /home/user/QubesIncoming
```

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/5eb5fde15cdb7b2923dcf6012a356ad7024db543.camel%40graumannschaft.org.