Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 889837 Details for
Bug 1048404
fedup "v0.8.0-3.fc19" fails to complete an upgrade from FC19 to FC20...
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
upgrade-prep.sh
upgrade-prep.sh (text/plain), 3.16 KB, created by
Will Woods
on 2014-04-25 17:02:16 UTC
(
hide
)
Description:
upgrade-prep.sh
Filename:
MIME Type:
Creator:
Will Woods
Created:
2014-04-25 17:02:16 UTC
Size:
3.16 KB
patch
obsolete
>#!/bin/bash ># upgrade-prep.sh - set up upgrade dir for upgrading ># ># Copyright (C) 2012 Red Hat Inc. ># ># This program is free software; you can redistribute it and/or modify ># it under the terms of the GNU General Public License as published by ># the Free Software Foundation; either version 2 of the License, or ># (at your option) any later version. ># ># This program is distributed in the hope that it will be useful, ># but WITHOUT ANY WARRANTY; without even the implied warranty of ># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ># GNU General Public License for more details. ># ># You should have received a copy of the GNU General Public License along ># with this program. If not, see <http://www.gnu.org/licenses/>. ># ># Author: Will Woods <wwoods@redhat.com> > >die() { echo "$@"; exit 1; } > >UPGRADEROOT=/system-upgrade-root > >[ -d "$UPGRADEROOT" ] || die "$UPGRADEROOT does not exist" > >grep -qw 'upgrade.test' /proc/cmdline && UPGRADETEST=1 || UPGRADETEST='' > ># remove our boot entry >[ $UPGRADETEST ] || new-kernel-pkg --remove fedup > ># Sanity check: Are all the packages present? >while read pkg; do > [ -f /system-upgrade/$pkg ] || missing="$missing $pkg" >done < /system-upgrade/package.list >if [ -n "$missing" ]; then > echo "missing packages:"; for pkg in $missing; do echo " $pkg"; done > die "aborting upgrade due to missing packages." >fi > ># make target dir for systemd's pivot_root >mkdir -p $UPGRADEROOT/mnt > ># unmount any temporary mounts set up by the initramfs >cat /proc/mounts | while read dev mnt type rest; do > [ "$type" == "autofs" ] && continue > [ -f $mnt/.please-unmount ] && umount -l $mnt >done > ># XXX backwards compatibility for upgrade.img from F18 and earlier ># if /lib/modules/$(uname -r) is a mount, umount it >moddir=$(readlink -eq /lib/modules/$(uname -r)) >grep -qw $moddir /proc/mounts && umount -l $moddir > ># make mountpoints for anything that's mounted directly under / >cat /proc/self/mountinfo | while read mntid parentid majmin root mnt rest; do > [ "$parentid" == 0 ] && rootid="$mntid" && continue > if [ "$parentid" == "$rootid" -a ! -d "$mnt" ]; then > echo "creating mountpoint ${UPGRADEROOT}${mnt}" > mkdir -p "${UPGRADEROOT}${mnt}" > fi >done > >echo "moving mounts into $UPGRADEROOT" >mount --make-unbindable $UPGRADEROOT ># bind everything into the upgrade chroot >mount --rbind / $UPGRADEROOT/sysroot || die "couldn't bind / into upgrade dir" ># make the bind mounts separate from the original mounts >mount --make-rprivate / ># unmount the original mounts, i.e.: ># anything that's a block device, not root, and not under UPGRADEROOT >tac /proc/mounts | while read dev mnt type opts x y; do > if [ -b "$dev" -a "$mnt" != "/" -a "${mnt#$UPGRADEROOT}" == "$mnt" ]; then > umount $mnt && echo "moved $mnt" || echo "failed to move $mnt" > fi >done > ># XXX: backward compatibility with upgrade.img < 0.8.0 >if [ ! -L /run/system-upgrade ]; then > echo "switching upgraderoot default target to upgrade.target" > # switch the upgrade chroot target to upgrade.target > ln -sf upgrade.target $UPGRADEROOT/etc/systemd/system/default.target > rm -f $UPGRADEROOT/usr/lib/systemd/system/default.target >fi > >echo "upgrade prep complete, switching root..."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1048404
: 889837