From 145bfe52338f98e4a772ab054518261641097fd7 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Mon, 22 Oct 2018 11:38:47 +0200 Subject: [PATCH] symlinks must also be created with havemknod --- mmdebstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 8c5ca85..5e188f8 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -934,8 +934,8 @@ sub setup { } elsif ($type == 1) { # hardlink die "type 1 not implemented"; } elsif ($type == 2) { # symlink - # nothing to do - next; + symlink $linkname, "$options->{root}/$fname" or die "cannot create symlink $fname"; + next; # chmod cannot work on symlinks } elsif ($type == 3) { # character special 0 == system('mknod', "$options->{root}/$fname", 'c', $devmajor, $devminor) or die "mknod failed: $?"; } elsif ($type == 4) { # block special