Web lists-archives.com

Re: [Progress Report1] Re: Using debootstrap




On 04/29/2018 12:59 AM, Richard Owlett wrote:
On 04/28/2018 10:57 PM, Kushal Kumaran wrote:
Richard Owlett <rowlett@xxxxxxxxxxx> writes:

On 04/27/2018 12:06 PM, Felix Dietrich wrote:
[SNIP]

Script started on Fri 27 Apr 2018 02:22:42 PM CDT

ls -Rdl /media/root/rco1


ls -Rdl /usr/sbin/debootstrap


ls -Rdl /media/root/rco1


debootstrap --verbose --arch=i386 --include=apt-get --variant=minbase --no-check-gpg stable /media/root/rco1 file:////media/cdrom0/debian/


exit
root@debian-jan13:~# root@debian-jan13:~# ls -Rdl /media/root/rco1
drwxr-xr-x 3 root root 4096 Apr 27 14:08 /media/root/rco1
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~# ls
-Rdl /usr/sbin/debootstrap
-rwxr-xr-x 1 root root 18981 Mar 10  2017 /usr/sbin/debootstrap
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~# ls
-Rdl /media/root/rco1
drwxr-xr-x 3 root root 4096 Apr 27 14:08 /media/root/rco1
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~#
debootstrap --verbose --arch=i386 --include=apt-get
--variant=minbase --no-check-gpg stable  /media/root/rco1
file:////media/cdrom0/debian/
/usr/sbin/debootstrap: 1454: /usr/sbin/debootstrap: cannot create /media/root/rco1/test-dev-null: Permission denied E: Cannot install into target '/media/root/rco1' mounted with noexec or nodev
root@debian-jan13:~# root@debian-jan13:~# root@debian-jan13:~# exit
exit

Script done on Fri 27 Apr 2018 02:22:42 PM CDT

The error says the filesystem containing /media/root/rco1 is mounted
with noexec or nodev.  Is that in fact the case?

I don't know. >
 Look at the /proc/mounts entry for that mountpoint.

I used Caja (MATE's file manager) to look at /proc/mounts without finding anything resembling the needed information. I'm missing some understanding.


mount -l
	gives
/dev/sdc1 on /media/richard/rco1 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2) [rco1]


The operation debootstrap is attempting appears to be the equivalent of

   mknod /media/root/rco1/test-dev-null c 1 3

You can try it out to verify after you fix the mount options to not
include nodev.


I started with the man page for "mknod" and followed links 2 or 3 levels discovering how little I know ;/  It's 1 AM my time to quit for "day". Much reading to do.


The man page for mount hints its possible to remove nodev but there is a dearth of useful examples. Also have not found a good description of "nodev".