From owner-freebsd-jail@FreeBSD.ORG Thu Oct 10 12:03:00 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D33461CF; Thu, 10 Oct 2013 12:03:00 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A724025D4; Thu, 10 Oct 2013 12:03:00 +0000 (UTC) Received: by mail-pa0-f51.google.com with SMTP id kp14so2623542pab.10 for ; Thu, 10 Oct 2013 05:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5sEWzotV3g6aTy8ScfO6Sn7j5b4VyRd0ztoi1cCS09Y=; b=muhFUTT6pU7/HrBn/RlPlxzvOTAbcMGgDtEdR01zvzuGNBQD0J77ZbNWwFEDKQpKzY Vbil4zjwUpOZ84jUDHchgUcVpdkzAzqGcxPFmvs6RQa8vyICzT1az5rTOWhDrFbTEJap 40X1YJJmJYmrN2uJvYOtjF/E4NQt57TVISXbDQNmJ8brsm7H7swEj+tAtlWoQ6sobbwt XLy0E5IRHiBgV9HW+ZLqK9ltxJzBfX9gG7N/84hArPIVRYaxkpfrKEYUOibWk6274o2G KjHVkBYZOhN74kXX3qFH9vvUxzW6guQpZLgu6OGJ3axpi116y457mjPJOyOXxHPReqyO cMng== MIME-Version: 1.0 X-Received: by 10.67.30.164 with SMTP id kf4mr15090745pad.13.1381406580330; Thu, 10 Oct 2013 05:03:00 -0700 (PDT) Received: by 10.70.30.98 with HTTP; Thu, 10 Oct 2013 05:03:00 -0700 (PDT) In-Reply-To: <1381406101.2271.32347133.46E044A4@webmail.messagingengine.com> References: <1381404913.25836.32340457.0EA543A2@webmail.messagingengine.com> <1381406101.2271.32347133.46E044A4@webmail.messagingengine.com> Date: Thu, 10 Oct 2013 15:03:00 +0300 Message-ID: Subject: Re: /lib/libc.so.7 unsupported file format From: Sami Halabi To: Mark Felder Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2013 12:03:00 -0000 Hi, thanks for replying me so fast. what i ment is: 1. in the jail (32 bit) to do: freebsd-update fetch # ls /var/db/freebsd-update/ ./ ../ f465c3739385890c221dff1a05e578c6cae0d0430e46996d319db7439f884336-install@ filelist files/ install.TggE71/ pub.ssl serverlist serverlist_full serverlist_tried tINDEX.present tag root@sami:/ # root@sami:/ # more /var/db/freebsd-update/tag freebsd-update|i386|9.1-RELEASE|7|b3924864da0e125ff57d2f9894347dbc0e130ae32a0647126d5109dbc099981e|1420070400 root@sami:/ # 2. since inside the jail: root@sami:/ # freebsd-update install Installing updates...chflags: ///lib/libc.so.7: Operation not permitted root@sami:/ # not working because of chflags (maybe there is a sysctl that will allow a jail to chflags??) i thought that maybe there is some way to do it from outside the jail. unfortunattly doing simple: root@6:/root # freebsd-update -b /usr/jails/sami -d /usr/jails/sami/var/db/freebsd-update/ install No updates are available to install. Run '/usr/sbin/freebsd-update fetch' first. root@6:/root # i thought if there is some way to interpret the data and installing using the host (maybe manually somehow...), or even changing the chflags inside the jail to an executable that return success no matter what... Sami On Thu, Oct 10, 2013 at 2:55 PM, Mark Felder wrote: > On Thu, Oct 10, 2013, at 6:48, Sami Halabi wrote: > > Hi, > > is there a simple way to interpret the data in /var/db/freebsd-update > > that > > sits inside a jail, from HOST and install the updates that already > > fetched > > somehow ? > > > > freebsd-update uses binary patches. They are not entire files you could > simply replace on your system. As you have witnessed, applying a binary > patch intended for a 64bit binary to a 32bit binary has dire > consequences. Unfortunately the data in /var/db/freebsd-update is > completely worthless for your 32bit jail. > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" > -- Sami Halabi Information Systems Engineer NMS Projects Expert FreeBSD SysAdmin Expert