Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-26 Thread Li Zhijian
On 11/27/2018 07:34 AM, Andrew Morton wrote: On Fri, 16 Nov 2018 15:12:48 +0800 Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic rootfs, it contains a

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-26 Thread Li Zhijian
On 11/27/2018 07:34 AM, Andrew Morton wrote: On Fri, 16 Nov 2018 15:12:48 +0800 Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic rootfs, it contains a

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-26 Thread Andrew Morton
On Fri, 16 Nov 2018 15:12:48 +0800 Li Zhijian wrote: > Previously, sys_link() will fail due to the new path is already existed. > this case ofen appears when we use a concated initrd, below is an > sample: > > 1) prepare a basic rootfs, it contains a regular files rc.local >

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-26 Thread Andrew Morton
On Fri, 16 Nov 2018 15:12:48 +0800 Li Zhijian wrote: > Previously, sys_link() will fail due to the new path is already existed. > this case ofen appears when we use a concated initrd, below is an > sample: > > 1) prepare a basic rootfs, it contains a regular files rc.local >

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-21 Thread Li Zhijian
ping This patch is to fix initrd cannot be extracted properly in some cases. Thanks On 11/16/2018 03:12 PM, Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-21 Thread Li Zhijian
ping This patch is to fix initrd cannot be extracted properly in some cases. Thanks On 11/16/2018 03:12 PM, Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a

[PATCH] initramfs: clean old path before creating a hardlink

2018-11-15 Thread Li Zhijian
Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic rootfs, it contains a regular files rc.local lizhijian@:~/yocto-tiny-i386-2016-04-22$ cat etc/rc.local #!/bin/sh echo "Running

[PATCH] initramfs: clean old path before creating a hardlink

2018-11-15 Thread Li Zhijian
Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic rootfs, it contains a regular files rc.local lizhijian@:~/yocto-tiny-i386-2016-04-22$ cat etc/rc.local #!/bin/sh echo "Running