From: Sebastian Moeller <moeller0@gmx.de>
To: "Dave Täht" <dave.taht@gmail.com>,
"cerowrt-devel@lists.bufferbloat.net"
<cerowrt-devel@lists.bufferbloat.net>
Subject: [Cerowrt-devel] sysupgrade failure solved
Date: Wed, 11 Dec 2013 12:05:56 +0100 [thread overview]
Message-ID: <5F4EAEB7-0154-48EB-8612-8E73EB5DD312@gmx.de> (raw)
Dear list,
for some time now we had the issue that the sysupgrade command did not work.
So here is the output of my first attempt to sysupgrade 3.10.18-1 to 3.10.21-1:
root@nacktmulle:~# sysupgrade -d 60 -n -v /home/persistent/cerowrts/3.10.21-1/3.10.21-1-sysupgrade.bin
killall: watchdog: no process killed
Sending TERM to remaining processes ... udhcpc lighttpd crond lighttpd snmpd xinetd dbus-daemon odhcp6c zebra babeld watchquagga avahi-daemon rngd ntpd pimd minissdpd dnsmasq sh ubusd askfirst netifd
Sending KILL to remaining processes ... ubusd askfirst
Switching to ramdisk...
mount: /proc is not a block device
umount: /tmp/root: not mounted
Failed to switch over to ramfs. Please reboot.
root@nacktmulle:~#
As you can see this did not work. After a reboot I removed the mount-utils packet:
root@nacktmulle:~# sysupgrade -d 60 -n -v /home/persistent/cerowrts/3.10.21-1/3.10.21-1-sysupgrade.bin
killall: watchdog: no process killed
Sending TERM to remaining processes ... udhcpc lighttpd crond lighttpd snmpd xinetd dbus-daemon odhcp6c zebra babeld watchquagga avahi-daemon rngd ntpd pimd minissdpd dnsmasq ubusd askfirst netifd
Sending KILL to remaining processes ... ubusd askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking firmware ...
Writing from <stdin> to firmware ...
Upgrade completed
The root cause for the sysupgrade filure with installed mount-utils is the fact that mount-utils' /usr/bin/mount has different calling conventions than busy box's /bin/mount which in result make sysupgrade fail. So the easiest solution for sysupgrade is to remove mount-utils before running sysupgrade. (An alternative proposed earlier would be to edit the sysupgrade script to always call /bin/mount and /bin/umount)
Bonus, on my router I mount a swp partition and a home partition (ext4) from an usb stick, both mount fine without mount-utils installed. So maybe we can move mount-utils out of the default installs?
Best Regards
Sebastian
reply other threads:[~2013-12-11 11:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5F4EAEB7-0154-48EB-8612-8E73EB5DD312@gmx.de \
--to=moeller0@gmx.de \
--cc=cerowrt-devel@lists.bufferbloat.net \
--cc=dave.taht@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox