Skip to content

Commit

Permalink
Fix --sysroot
Browse files Browse the repository at this point in the history
The default sysroot we want is /, explicitly saying `--sysroot=/sysroot` today ends up confusing ostree because we don't bind mount `/boot` with `/sysroot/boot`.
  • Loading branch information
cgwalters authored and eranco74 committed Aug 21, 2023
1 parent 95f7f17 commit 331a8ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ostree-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ cp pull-secret.json /etc/ostree/auth.json
ostree container unencapsulate --repo /ostree/repo $base_container | tee /tmp/unencapsulate.base
ostree refs --create base $(cut -d ' ' -f 2 < /tmp/unencapsulate.base)

ostree admin os-init --sysroot /sysroot $new_osname
ostree admin os-init $new_osname
log_it Deploying new stateroot
ostree admin deploy --retain --sysroot /sysroot --os $new_osname base
ostree_deploy=$(ostree admin status --sysroot /sysroot|awk /$new_osname/'{print $2}')
ostree admin deploy --retain --os $new_osname base
ostree_deploy=$(ostree admin status |awk /$new_osname/'{print $2}')
log_it Restoring /var
ostree cat backup /var.tgz | tar xzC /ostree/deploy/$new_osname --selinux

Expand Down

0 comments on commit 331a8ea

Please sign in to comment.